Lightweight assistant for implementing modular architecture in Laravel.
sarvarov/laravel-modules is a Laravel package for lightweight assistant for implementing modular architecture in laravel..
It currently has 1 GitHub stars and 48 downloads on Packagist (latest version v1.1.0).
Install it with composer require sarvarov/laravel-modules.
Discover more Laravel packages by sarvarov
or browse all Laravel packages to compare alternatives.
Last updated
Lightweight assistant for implementing modular architecture in Laravel.
app
Modules
- Page
- - Controllers
- - Migrations
- - Translations
- - Views
- - Routes
- - Models
composer require sarvarov/laravel-modulesvendor:publish --provider="Sarvarov\LaravelModules\ModuleServiceProvider".config/modules.php add your created modules in list parameter, for example:'list' => [
'BlogPost' => [
'prefix' => 'blog-post',
'routes' => ['web'],
],
],
In example above it will load routes from app/Modules/Frontend/Page/Routes/web.php. \Route::get('/', 'PageController@index'); will route to app/Modules/Frontend/Page/Controllers/PageController.