webtack / lara-modules
1.2
2018-03-24 09:20 UTC
Requires
- php: >=7.0.0
README
webtack/lara-modules
is a Laravel package which created to manage your Laravel app using modules.
Install
To install through Composer, by run the following command:
composer require webtack/lara-modules
Autoloading
By 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 Service Provider
Add this service provider to your config/app.php
file.
Webtack\Modules\ModulesServiceProvider::class
If the loader still does not see your modules, run the command
composer dump-autoload
Artisan
vendor:publish
Artisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).
php artisan vendor:publish --provider="Webtack\Modules\ModulesServiceProvider"
Test Module
Click here
http://localhost/path/to/project/test http://localhost/path/to/project/api/test
to test the module's functionality
License
The MIT License (MIT). Please see License File for more information.