I was needing to get a randomized set of Users for a project I was working on and came up with this dead-simple way of doing that using a random() scope.
David Hemphill shares a cool tip for using Query Scopes.
Or try paginated search →
I was needing to get a randomized set of Users for a project I was working on and came up with this dead-simple way of doing that using a random() scope.
David Hemphill shares a cool tip for using Query Scopes.
Sponsored
Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.