laravel get random row
snippet in php

laravel get random row

user7193

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