kevinsimard / laravel-builder-macros by kevinsimard

Laravel builder macros for the Eloquent ORM
351
7
2
Package Data
Maintainer Username: kevinsimard
Maintainer Contact: kev.simard@gmail.com (Kevin Simard)
Package Create Date: 2015-11-16
Package Last Update: 2017-03-23
Language: PHP
License: MIT
Last Refreshed: 2024-12-19 03:03:34
Package Statistics
Total Downloads: 351
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 7
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

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.