New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:5
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
ems/versatile

Extensions for Laravels Eloquent ORM

8,592 0
hugorut/filterable

A laravel package for working with query filtering

20 0
rtablada/ordered-eloquent

An extension of Eloquent ORM for automatically ordering results

18 3
jimbolino/laravel-model-builder

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

11,846 30

Version History

Version Released Laravel License
v1.1.1 5.2.* MIT