lara123
2 years ago

I have issue in laravel random() query .

Posted 2 years ago by lara123

// query $data =User::all()->where('id','!=',5)->random(10)->get();

some time it return 9 record why? please suggest.

Please sign in or create an account to participate in this conversation.