Simple package that creates module
structure in root directory like
├── modules
│ └── User
│ ├── Controllers
│ │ └── User.php
│ ├── Models
│ │ └── User.php
│ ├── Requests
│ │ └── User.php
│ ├── Resources
│ │ └── User.php
│ ├── routes
│ │ └── User.php
│ ├── seeders
│ │ └── User.php
│ └── tests
│ └── Unit
│ └── User.php
where User
is a module name
Run artisan command
php artisan make:module <name>
where <name>
is a module name
You can add module routes using macro
Route::module('<name>')
If you have several route files in module, you can add it providing second parameter to macro
Route::module('<name>','<route filename>')
Route::module('User')
will include file modules/User/routes/User.php
Route::module('User','web');
Route::module('User','api');
will include files
modules/User/routes/web.php
modules/User/routes/api.php