PHP code example of permaxis / laravel-crudgenerator

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

    

permaxis / laravel-crudgenerator example snippets

 php
public function registerRoutes()
    {
       Route::name('bo.')->prefix('backoffice')->middleware(['web'])->group(function ()  {
            \Permaxis\LaravelCrudGenerator\app\Services\RouteRegistrar::routes([
                [
                    'resource' => 'articles',
                    'controller' => '\App\Http\Controllers\ArticleController',
                    'route_name_prefix' => 'articles'
                ]
            ]);
        });
    }
 php
...
public function map()
    {
        ...
        $this->registerRoutes();

    }
...