laravel sql query select 5 random if query is less than 20 code example
Example: laravel get random row
User::all()->random();
User::all()->random(10); // The amount of items you wish to receive
User::all()->random();
User::all()->random(10); // The amount of items you wish to receive