PHP code example of tobidsn / apigenerator

1. Go to this page and download the library: Download tobidsn/apigenerator 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/ */

    

tobidsn / apigenerator example snippets


protected $signature = 'crud:admin {name : Class (singular) for example User}
                        {--table= : The name of the Table.}
                        {--model= : The name of the Model.}
                        {--route-group= : The name of the Model.}
                        {--view-path= : The name of the view path.}';

'custom_template' => true,

'path' => base_path('resources/stubs/'),

'view_columns_number' => 5,

'custom_delimiter' => ['%%', '%%'],

'dynamic_view_template' => [],

'route_group' => 'admin',

'view_path' => '_admin',

'form_helper' => 'adminlte3',

    php artisan vendor:publish --provider="Tobidsn\ApiGenerator\ApiGeneratorServiceProvider"
    

    'custom_template' => true,
    

php artisan vendor:publish --provider="Tobidsn\ApiGenerator\ApiGeneratorServiceProvider"

php artisan migrate

php artisan crud:admin User --table=users

php artisan serve