LaravelPackages.net
Acme Inc.
Toggle sidebar
kevinsimard/laravel-builder-macros

Laravel builder macros for the Eloquent ORM

351
7
v1.1.1
About kevinsimard/laravel-builder-macros

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

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.

Comments