webtack/lara-modules
Composer 安装命令:
composer require webtack/lara-modules
包简介
README 文档
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.
统计信息
- 总下载量: 133
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-19