PHP code example of rp76 / module

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

    

rp76 / module example snippets


// config/app.php
'providers' => [
    ...
    \Rp76\Module\ModuleServiceProvider::class,
],

php artisan vendor:publish --tag=RpModule

php artisan vendor:publish --provider="Rp76\Module\ModuleServiceProvider"

// config/app.php
'providers' => [
    ...
    \App\Providers\ModulesProvider::class,
],

php artisan module:install 

php artisan module:make {name} //php artisan module:make Book 

php artisan module:controller {name} {moduleName} --r //php artisan module:controller BookController Book 

php artisan module:model {name} {moduleName} --m //php artisan module:model Book Book 

php artisan module:migration {name} {moduleName} //php artisan module:migration create_book Book