in random order laravel
snippet in php

laravel get random row

user993

User::all()->random();
User::all()->random(10); // The amount of items you wish to receive

in random order laravel

user6764

Model::select('column')->where('column','value')->inRandomOrder()
    ->limit(2) // here is yours limit
    ->get();

------------------ OR --------------------

Model::inRandomOrder()->select('column')->where('column','value')->first();

inrandomorder laravel

user8658

$randomUser = DB::table('users')
                ->inRandomOrder()
                ->first();