PHP code example of protoqol / quasi

1. Go to this page and download the library: Download protoqol/quasi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

protoqol / quasi example snippets

 
php artisan vendor:publish --tag=quasi-config

//  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
 
// The keys defined in this config will always be excluded from resources - if they exist as a key in the table.
'exclude' => [
    // 'id',
],