random record get with pagination in karavel 8 code example
Example: random record get with pagination in karavel 8
Product::orderBy(DB::raw('RAND()'))->take(10)->get();
$products = Product::all()->random();
$products = Product::all()->random(10);
$products = Product::all()->orderBy(DB::raw('RAND(1234)'))->paginate(4);