Multi-module laravel

First, the URL used here Caffienate Modules: modules maintained by caffeinated

Second, according to their own version of the selected package version

Third, adding the project composer.json file "caffeinated / modules": "3.0 *.", And run the composer update

 

 

Fourth, after the update is completed by adding the following code config / app.php in

  'providers' => [
  Caffeinated\Modules\ModulesServiceProvider::class,
  ],

  'aliases' => [
  'Module' => Caffeinated\Modules\Facades\Module::class,
  ],

Fifth, enter php artisan make the command line: module Manage

Sixth, the following files are generated success

Seven, the last entered php artisan vendor: publish

Guess you like

Origin www.cnblogs.com/starluke/p/11811494.html