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
Easily create and manage your servers and deploy your Laravel applications in seconds.