定制 dot-env-it/laravel-module-boilerplate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dot-env-it/laravel-module-boilerplate

最新稳定版本:v1.0.1

Composer 安装命令:

composer require dot-env-it/laravel-module-boilerplate

包简介

A streamlined boilerplate generator for modular Laravel architectures.

README 文档

README

Laravel Module Boilerplate

A high-performance modular architecture generator designed for Laravel. This package allows you to quickly scaffold entire modules (Controllers, Models, Services, etc.) within a modules/ directory.

🚀 Installation

This package is intended for local development only. Do not install it in production.

1. Require the Package

Install via Composer using the --dev flag:

composer require dot-env-it/laravel-module-boilerplate --dev

2. Publish Stubs (Optional)

If you wish to customize the templates used for generation, publish the stubs to your project root:

php artisan vendor:publish --tag=module-boilerplate-stubs

The stubs will be available in stubs/vendor/dot-env-it/.

🛠 Usage

Generate a Full Module

To scaffold a complete module structure:

php artisan module:make Blog

Custom JS Path

If you use a non-standard directory for your frontend assets:

php artisan module:make Blog --js-path=Assets/scripts

Available Sub-Commands

You can also generate individual components within a module:

  • php artisan module:controller {name} --module={module}
  • php artisan module:model {name} --module={module}
  • php artisan module:service {name} --module={module}
  • php artisan module:request {name} --module={module}
  • (And 14+ other specialized commands)

📂 Module Structure

Generated modules follow this clean architecture:

app/
├──Modules/
│  └── Blog/
│        ├── Actions/
│        ├── DataTables/
│        ├── Http/
│        │   ├── Controllers/
│        │   ├── Payloads/
│        │   ├── Requests/
│        │   └── Resources/
│        ├── Models/
│        ├── Queries/
│        └── Services/
└──resources/
   ├──custom-js-path/modules/blog
   └──views/modules/blog

It also creates permissions if spatie/laravel-permission package is installed.

🛡 Security & Environment

This package automatically disables its commands when APP_ENV is set to production. This ensures that your file system remain protected in live environments.

👥 Credits

📄 License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固