📜  laravel 获取随机行 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:38.580000             🧑  作者: Mango

代码示例1
User::all()->random();
User::all()->random(10); // The amount of items you wish to receive