nasirkhan/module-manager
最新稳定版本:v4.2.0
Composer 安装命令:
composer require nasirkhan/module-manager
包简介
Module Manager & Generator for Laravel Starter Kit (https://github.com/nasirkhan/laravel-starter)
README 文档
README
Module Manager is used to manage and generate Module for the Laravel Starter.
Laravel Starter is a CMS-like modular starter boilerplate application project, built with the latest release of Laravel. This package is preinstalled with the Laravel Starter.
| Laravel | module-manager |
|---|---|
| 12.x | ^4.0 |
| 11.x | ^2.0 |
| 10.x | ^1.0 |
Installation
You can install the package via Composer:
composer require nasirkhan/module-manager
Now the Module Manager is installed and ready to use.
If you need to change the stub path and other config then use the following command to publish the config file and the module stub files.
php artisan vendor:publish --tag=module-manager
Usage
To create a project use the following command, you have to replace the MODULE_NAME with the name of the module.
php artisan module:build MODULE_NAME
You may want to use --force option to overwrite the existing module. if you use this option, it will replace all the exisitng files with the defalut stub files.
php artisan module:build MODULE_NAME --force
Remove Module
To remove a module, use the following command. This will permanently delete the module directory and remove it from the status file.
php artisan module:remove MODULE_NAME
Disable Module
To disable a module, use the following command. This will set the module status to false in the modules_statuses.json file.
php artisan module:disable MODULE_NAME
Enable Module
To enable a module, use the following command. This will set the module status to true in the modules_statuses.json file.
php artisan module:enable MODULE_NAME
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email nasir8891@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please have a look at License File for more information.
统计信息
- 总下载量: 36.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-14