1
I am making a random query in the table users
of my application in laravel
, example below:
User::inRandomOrder()->paginate(10)
It actually returns me the result randomly, but I need the entire record of the table users
with the column users_destaque = 1
be listed first randomly, and every record with the column users_destaque = 0
be listed later and also randomly, I stand by.
I’m finalizing the Laravel 5.4, I try this code same ?
– Bruno Santos
Hello @Brunosantos, in this case is the second example you should use
– Miguel