webtack/lara-modules is a Laravel package which created to manage your Laravel app using modules.
To install through Composer, by run the following command:
composer require webtack/lara-modulesBy default the module classes are not loaded automatically. You can autoload your modules using psr-4. For example:
{
"autoload": {
"psr-4": {
"App\\": "app/",
"Modules\\": "modules/"
}
}
}Add this service provider to your config/app.php file.
Webtack\Modules\ModulesServiceProvider::classIf the loader still does not see your modules, run the command
composer dump-autoloadArtisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).
php artisan vendor:publish --provider="Webtack\Modules\ModulesServiceProvider" http://localhost/path/to/project/test
http://localhost/path/to/project/api/testThe MIT License (MIT). Please see License File for more information.