rand laravel code example Example: laravel get random row User::all()->random(); User::all()->random(10); // The amount of items you wish to receive