Join 25,000+ Laravel Developers and join the free Laravel Newsletter
Laravel Tutorials / updated: August 06, 2014

Laravel Tip: Random Model Scope

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.

This appeared first on Laravel News

Visit Resource →

Laravel News Partners


Join the weekly newsletter and never miss out on new tips, tutorials, and more.