PHP code example of pretasoft / crud-generator

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

    

pretasoft / crud-generator example snippets


    'providers' => [
        ...

        Appzcoder\CrudGenerator\CrudGeneratorServiceProvider::class,
        // Use the line bellow for "laravelcollective/html" package otherwise remove it.
        Collective\Html\HtmlServiceProvider::class,
    ],

    // Use the lines bellow for "laravelcollective/html" package otherwise remove it.
    'aliases' => [
        ...

        'Form'      => Collective\Html\FormFacade::class,
        'HTML'      => Collective\Html\HtmlFacade::class,
    ],
    

Route::resource('person', 'PersonController');

php artisan crud:controller PersonController --crud-name=Person --view-path="directory"

php artisan migrate