PHP code example of arsoft / module
1. Go to this page and download the library: Download arsoft/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/ */
arsoft / module example snippets
// initiate backend module
php artisan armodule:init-backend
// initiate frontend module
php artisan armodule:init-frontend
'providers' => [
. . .
// for backend module
App\ModuleBackend\moduleBackendServiceProvider::class
// for frontend module
App\ModuleFrontend\moduleFrontendServiceProvider::class
...
];
// generate backend module
php artisan armodule:make-backend ParentModule/ChildModule
// generate backend module
php artisan armodule:make-frontend ParentModule/ChildModule