Laravel builder macros for the Eloquent ORM
kevinsimard/laravel-builder-macros is a Laravel package for laravel builder macros for the eloquent orm.
It currently has 7 GitHub stars and 351 downloads on Packagist (latest version v1.1.1).
Install it with composer require kevinsimard/laravel-builder-macros.
Discover more Laravel packages by kevinsimard
or browse all Laravel packages to compare alternatives.
Last updated
User::orderByRandom()->first();
User::where...->orderByRandom()->get();
Add the Kevinsimard\BuilderMacros\Providers\OrderByRandomServiceProvider service provider in config/app.php.
├── src
│ └── Providers
│ └── OrderByRandomServiceProvider.php
├── .editorconfig
├── .gitattributes
├── .gitignore
├── LICENSE.md
├── README.md
└── composer.json
This package is open-sourced software licensed under the MIT license.