Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mawuva/laravel-macro-search
Laravel macro that help make search on eloquent model
https://github.com/mawuva/laravel-macro-search
Last synced: 7 days ago
JSON representation
Laravel macro that help make search on eloquent model
- Host: GitHub
- URL: https://github.com/mawuva/laravel-macro-search
- Owner: mawuva
- License: mit
- Created: 2021-06-03T01:57:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-24T19:50:33.000Z (over 3 years ago)
- Last Synced: 2024-08-02T22:52:44.732Z (3 months ago)
- Language: PHP
- Homepage: https://packagist.org/packages/mawuekom/laravel-macro-search
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel macro that help make search on eloquent model
This package is a macro service provider to make search on your eloquent model
## Installation
You can install the package via composer:
```bash
composer require mawuekom/laravel-macro-search
```## Usage
### Laravel
Go to **config/app.php**, and add this in the providers key
```php
'providers' => [
...
Mawuekom\MacroSearch\MacroSearchServiceProvider::class,
...
]
```### Lumen
Go to **bootstrap/app.php**, and add this in the specified key
```php
// Add provider
$app->register(Mawuekom\MacroSearch\MacroSearchServiceProvider::class);
```### Your model which inherits an eloquent model
```php