laravel get specific random model

后端 未结 0 750
独厮守ぢ
独厮守ぢ 2020-11-30 19:30

I use laravel 8. get random 3 users:

Users::inRandomOrder()->limit(3)->get();

but I want to add a specific user to the random output.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题