Joining two models in Laravel Eloquent

I have a model stored in a variable like:

$user = User::where('name', 'like', $test)
->orderBy('name');

I would like to build another query where I can join $user. Can't find the right syntax to do it.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HkR8F6
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time