boleiros/laravel-modularization

用于自动在laravel中创建模块的命令

dev-master 2019-08-25 10:26 UTC

This package is auto-updated.

Last update: 2024-09-29 04:49:28 UTC


README

如何使用

php artisan bake:module [name]

运行时使用复数形式和小写,例如

php artisan bake:module posts

在config/app.php中注册服务提供者,参见命令结果。命令结果的示例

Add this provider to config/app.php:
Modules\Posts\Providers\PostServiceProvider::class,

创建迁移

php artisan make:migration create_posts_table --path=modules/Posts/Migrations

灵感来源于并始于以下仓库: https://github.com/erikfig/laravel