Get Random Records

PHOTO EMBED

Tue Feb 16 2021 15:58:28 GMT+0000 (UTC)

Saved by @nhatphan108

 User::all()->random()->user_id;
User::pluck('id')->random()
content_copyCOPY