Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flavianohonorato/laravel-filters
A Laravel package to make it easy to consult eloquent
https://github.com/flavianohonorato/laravel-filters
eloquent eloquent-filters eloquent-orm laravel laravel-filters php
Last synced: about 2 months ago
JSON representation
A Laravel package to make it easy to consult eloquent
- Host: GitHub
- URL: https://github.com/flavianohonorato/laravel-filters
- Owner: flavianohonorato
- License: mit
- Created: 2019-12-26T14:42:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T15:23:39.000Z (about 5 years ago)
- Last Synced: 2024-05-10T10:42:51.040Z (9 months ago)
- Topics: eloquent, eloquent-filters, eloquent-orm, laravel, laravel-filters, php
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Laravel package to make it easy to consult eloquente
- Install:
```
composer require wicool/laravel-filters
```## How to use:
- Model `app/Models/User.php`
```php
filter($request->all())->get();
return $users;
}
}
```- The return will be something like:
```
/users?name=Fulaninho&[email protected]?phone=999999999&status=trueSELECT * FROM users WHERE name = 'Fulaninho' AND email = '[email protected]' AND status = true
```