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
bjerke/api-query-builder
A query builder for Laravel that parses the request and uses Eloquent ORM to que...
7,937
26
nilportugues/serializer-eloquent
Eloquent Driver for NilPortugues Serializer outputting valid API responses in JS...
36,632
5
jimbolino/laravel-model-builder
builds eloquent models based on the tables and relations found in your mysql dat...
11,793
30
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v1.1.1 | 5.2.* | MIT |