Laravel select random row from table
Get randow row from table in laravel 5.3+
$randomRow = DB::table('table')
->inRandomOrder()
->first();
Get randow id from table in laravel 5.3+
$randomId = DB::table('table')
->inRandomOrder()
->value('id');