kshitizmittal
11 months ago

Convert Custom Query in Laravel

Posted 11 months ago by kshitizmittal
select * from employeedetails as ed LEFT JOIN (SELECT * FROM `punchreports` where date="2018-12-03") as pr on ed.emp_id = pr.emp_id where ed.status="Active"

Can I convert this query in Eloquent ?

or

How to execute this query in Laravel Controller?

Please sign in or create an account to participate in this conversation.