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

sciku1/laravel-match-against

Laravel builder match against eloquent syntax and related.

1,810 6
bjerke/api-query-builder

A query builder for Laravel that parses the request and uses Eloquent ORM to que...

7,822 26
nilportugues/serializer-eloquent

Eloquent Driver for NilPortugues Serializer outputting valid API responses in JS...

36,591 5
stevenmaguire/laravel-cache

Seamlessly adding caching to Laravel service objects

1,758 17
jimbolino/laravel-model-builder

builds eloquent models based on the tables and relations found in your mysql dat...

11,719 30