protoqol / quasi
Quasi
1.0.2
2023-06-24 15:40 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Quasi
Ever thought it was a bit tedious to define an API resource for a large table? This package makes life a bit simpler by presetting all columns in a Resource, so you can simply remove the ones you don't need, instead of adding the ones you need.
Want to help keep open-source sustainable?
You can help by contributing to the code or donating using the button below! Both are highly appreciated and contribute directly to keeping open-source free and sustainable!
Installation
You can install the package via composer:
composer require protoqol/quasi
Optional - Publish configuration file with:
php artisan vendor:publish --tag=quasi-config
Usage
// Table name is "guessed" based of the resource name and will result in 'users' in this case. php artisan make:qresource UserResource // Table name is given as the second argument. php artisan make:qresource UserResource users
Config
// The keys defined in this config will always be excluded from resources - if they exist as a key in the table. 'exclude' => [ // 'id', ],
Changelog
Please see CHANGELOG for more information what has changed recently.
Credits
License
The GNU GPL (GPL). Please see License File for more information.