PHP code example of happenv-com / laravel-true-modular
1. Go to this page and download the library: Download happenv-com/laravel-true-modular 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/ */
happenv-com / laravel-true-modular example snippets
class CatalogServiceProvider extends ModuleProvider
{
public function configureModule(Module $module): void
{
$module
->name('acme/catalog')
->hasConfig('catalog')
->hasRoutes('web', 'api')
->hasViews()
->hasMigrations()
->runsMigrations();
}
}