I'm doing a random query in the users
table of my application in laravel
, example below:
User::inRandomOrder()->paginate(10)
It actually returns the result to me in a random way, but I need the whole record of the users
table with the users_destaque = 1
column to be listed first randomly, and every record with the users_destaque = 0
column is listed afterwards also randomly, I'm waiting.