Looking to hire Laravel developers? Try LaraJobs

laravel-builder-macros maintained by kevinsimard

Description
Laravel builder macros for the Eloquent ORM
Author
Last update
2017/03/23 17:28 (dev-master)
License
Links
Downloads
351

Comments
comments powered by Disqus

Laravel Builder Macros

Usage

orderByRandom

User::orderByRandom()->first();
User::where...->orderByRandom()->get();

Installation

Add the Kevinsimard\BuilderMacros\Providers\OrderByRandomServiceProvider service provider in config/app.php.

Code Structure

├── src
│   └── Providers
│       └── OrderByRandomServiceProvider.php
├── .editorconfig
├── .gitattributes
├── .gitignore
├── LICENSE.md
├── README.md
└── composer.json

License

This package is open-sourced software licensed under the MIT license.