Package Data | |
---|---|
Maintainer Username: | wangdong |
Maintainer Contact: | mail@wangdong.io (wangdong) |
Package Create Date: | 2018-04-27 |
Package Last Update: | 2018-11-07 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:13:30 |
Package Statistics | |
---|---|
Total Downloads: | 214 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel模块化插件
支持Laravel和Lumen版本 >= 5.1
安装
composer require wangdong/laravel-module
配置
Laravel配置(laravel >= 5.5 跳过此步骤)
# 文件`config/app.php`增加providers项
LaravelModule\ServiceProvider::class,
Lumen配置
# 文件`bootstrap/app.php`增加providers项
$app->register(LaravelModule\ServiceProvider::class);
复制
php artisan module:publish
生成模块
php artisan module:init module/index