Laravel this is not only a practical framework, it is also a programming style
How can I create a query random with laravel and exclude a specific row
I tried this :
return $this->user ->get() ->random(1) ->where('id', '!=', 1);
Aucun commentaire:
Enregistrer un commentaire