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. Quasi is an amazing package that generates API resources with keys preset to their respective table's columns.
You can install this package via composer by running the following command:
composer require protoqol/quasi
Or Optionally you can publish the configuration file with this command:
php artisan vendor:publish --tag=quasi-config
The table name is "guessed" based on the resource name and will result in
users in this case.
php artisan make:qresource UserResource
The table name is given as the second argument.
php artisan make:qresource UserResource users
The keys defined in this config will always be excluded from resources - if they exist as a key in the table.
'exclude' => [ // 'id', ],
For more details, Visit Github.
At Codebirsk, we facilitate the development of eCommerce applications, CRM softwares, SAAS applications and any type of custom web applications. Our main goal is to provide a smooth user experience. Our proficient team of web developers has years of experience in providing successful web applications across the globe. So You can get in touch with us for any suggestion about the development of an interactive, and custom made web application for your enterprise.
Published at : 21-06-2022
I am a highly results-driven professional with 12+ years of collective experience in the grounds of web application development especially in laravel, native android application development in java, and desktop application development in the dot net framework. Now managing a team of expert developers at Codebrisk.