Download the PHP package signifly/laravel-builder-macros without Composer
On this page you can find all versions of the php package signifly/laravel-builder-macros. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signifly/laravel-builder-macros
More information about signifly/laravel-builder-macros
Files in signifly/laravel-builder-macros
Package laravel-builder-macros
Short Description A set of useful Laravel builder macros.
License MIT
Homepage https://github.com/signifly/laravel-builder-macros
Informations about the package laravel-builder-macros
A set of useful Laravel builder macros
The signifly/laravel-builder-macros
package allows you to easily add a set of useful builder macros to your Laravel app.
Installation
You can install the package via composer:
The package will automatically register itself.
Macros
addSubSelect
defaultSelectAll
joinRelation
leftJoinRelation
map
whereLike
addSubSelect
Add a select sub query.
defaultSelectAll
It selects all columns from the query. Useful for queries with joins and additional selects.
joinRelation
A query way to join relations.
leftJoinRelation
A query to left join relations.
map
A direct method to retrieve the results and map it.
whereLike
Search in your models with the LIKE
operator.
You can also supply an array of columns to search in:
Testing
Security
If you discover any security issues, please email [email protected] instead of using the issue tracker.
Credits
- Morten Poul Jensen
- All contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-builder-macros with dependencies
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0