kevinsimard/laravel-builder-macros
Laravel builder macros for the Eloquent ORM
351
7
| Install | |
|---|---|
composer require kevinsimard/laravel-builder-macros |
|
| Latest Version: | v1.1.1 |
| License: | MIT |
| Last Updated: | Mar 23, 2017 |
| Links: | GitHub · Packagist |
Maintainer: kevinsimard
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.
Related Packages
davidmpeace/immutability
A simple Laravel package that allows you to enforce immutable attributes on Eloq...
20,474
6
nilportugues/serializer-eloquent
Eloquent Driver for NilPortugues Serializer outputting valid API responses in JS...
36,485
5
jimbolino/laravel-model-builder
builds eloquent models based on the tables and relations found in your mysql dat...
11,579
30
sofa/model-locking
Pseudo pessimistic model locking with broadcasted events for Laravel Eloquent OR...
48,175
48