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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire