PHP code example of infinito / laravel-crud-api-generator

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

    

infinito / laravel-crud-api-generator example snippets

sh

php artisan make:controller Dev/TestController

sh

...

use Infinito\LaravelCrudApiGenerator\Scripts;

...


class TestController {

    public function __invoke(){
    
        (new Scripts())->__invoke();
        echo "Done!";
        
    }
    
}