repertory / laravel-module by wangdong

Laravel模块化 (附带打通lumen和laravel及不同版本限制)
214
0
1
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-module

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock available

Laravel模块化插件

支持Laravel和Lumen版本 >= 5.1

配置

  1. 安装

    composer require wangdong/laravel-module
    
  2. 配置

  • Laravel配置(laravel >= 5.5 跳过此步骤)

    # 文件`config/app.php`增加providers项
    LaravelModule\ServiceProvider::class,
    
  • Lumen配置

    # 文件`bootstrap/app.php`增加providers项
    $app->register(LaravelModule\ServiceProvider::class);
    
  1. 复制

    php artisan module:publish
    

开发

生成模块

php artisan module:init module/index