vendredi 23 octobre 2020

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

Aucun commentaire:

Enregistrer un commentaire