Download the PHP package larafun/suite without Composer
On this page you can find all versions of the php package larafun/suite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larafun/suite
More information about larafun/suite
Files in larafun/suite
Package suite
Short Description A collection of classes and traits that will make you Laravel API workflow even more awesome!
License MIT
Informations about the package suite
Larafun Suite
A small collection of classes and traits that will make your Laravel API development even more awesome!
Check out the full documentation in here larafun-suite.readthedocs.io
Installation
Requires PHP > 7.0, Laravel > 5.5
Basic Usage
Just make your Models extend Larafun\Suite\Model
instead of use Illuminate\Database\Eloquent\Model
Now you can use your models as you regularly would.
Why use this package?
Because you get enhanced Resources and Pagination out of the box!
Since the Book
is an instance of Larafun\Suite\Model
the results will be
automatically presented inside a data
property. Additionally, a meta
field
will be included and provide pagination
information out of the box.
Switch back to the default behaviour?
The most easy way is to make your models extend Illuminate\Database\Eloquent\Model
.
Otherwise you can fine tune your setup inside config/suite.php
, after you publish it:
php artisan vendor:publish --provider=Larafun\\Suite\\ServiceProvider
TODO
These things should be added:
- [x] Add Validation to Filters
- [ ] Add Formatters to Filters
- [ ] Add Sanitizers to Filters
- [x] Change Filters behaviour to allow keys that do not have any defined defaults
- [x] Allow Filters to override values after instatiation
- [ ] Split Filters into a separate package
All versions of suite with dependencies
illuminate/support Version ^8.0
illuminate/database Version ^8.0
illuminate/contracts Version ^8.0