I want to create join query for multiple models with separate (model) conditions.
I have create following query :
select * from studentinformation as s left join studentattandence a on s.id =
a.studentid where s.PersonalFirstName='Kathi' and s.PersonalLastName='irfan'
and s.Age='2' and s.gender ='Male' and s.StudentCourse='1' and
s.GuardianFirstName='test' and s.GuardianLastName = 'test' and a.date
BETWEEN '2015-02-01' AND '2015-02-07'
Table of studentinformation model name is "StudentAdmissionModel".
Table of studentattandence model name is "StudentAttandenceModel".
How can i do this laravel Eloquent ORM.