PHP code example of nutandc / api-crud-generator

1. Go to this page and download the library: Download nutandc/api-crud-generator 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/ */

    

nutandc / api-crud-generator example snippets

bash
php artisan vendor:publish --tag=api-crud-generator-config
php artisan vendor:publish --tag=api-crud-generator-stubs
bash
php artisan crud:api Post --fields="title,body:text,author_id:integer,is_active:boolean"
bash
php artisan crud:api Post --service --repo
php artisan crud:api Post --no-service --no-repo
bash
php artisan crud:api Category --no-migration --no-resource