I am trying to fetch random number of rows from table in laravel 5.7, but i could not find any solution. I have use
Model::all()->random(2);
It work fine. But i need to apply where clause with it like Model::select('column')->where('column','value')->random(number of rows');
So how can i achieve this using eloquent.
Please any suggestions for me.