Skip to content
Advertisement

Laravel collection how to return where no records and not by auth user

How can I return only a task, not by user auth wherein the join no records and not by auth user? How can I only return tasks of an unauthorized user and where there are no records in another table join?

Task.php

Join.php

Advertisement

Answer

Solution is

Task.php

TaskController.php

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement