定制 tienhm7/laravel-hmvc-generator 二次开发

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

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

tienhm7/laravel-hmvc-generator

最新稳定版本:v1.0.0

Composer 安装命令:

composer require tienhm7/laravel-hmvc-generator

包简介

this package which created to manage your large by modules using HMVC architectural pattern

README 文档

README

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

HMVC_Generator

A Laravel package to create and manage your large laravel app using modules [HMVC]

Folder Structure

  • Modules
    • User
      • Config/
      • Database/
        • Migrations/
      • Http/
        • Controllers/
          • UserController.php
        • Middleware/
          • UserMiddleware.php
        • Requests/
          • UserRequest.php
      • Models/
        • User.php
      • Providers/
        • UserServiceProvider.php
      • Lang/
        • en/
        • vi/
      • Views/
        • index.blade.php
      • Routes/
        • web.php "All Routes under "users" prefix"
        • api.php "All Routes under "api/users" prefix"

Artisan Commands

  • To create a new module you can simply run :
php artisan module:make <module_name>
  • Create new Controller for the specified module :
php artisan module:make-controller <controller_name> --module=<module_name>
  • Create new Model for the specified module :
php artisan module:make-model <model_name> --module=<module_name>
  • Create new Middleware for the specified module :
php artisan module:make-middleware <middleware_name> --module=<module_name>
  • Create new Request for the specified module :
php artisan module:make-request <request_name> --module=<module_name>
  • Create new Migration for the specified module :
php artisan module:make-migration <migration_name> --module=<module_name> --table=<table_name>

// Example:
php artisan module:make-migration create_posts_table --module=Post

Routes

api.php => These routes are loaded by the <module_name>ServiceProvider within a group which is assigned the "api" middleware group and "api/<module_name>" prefix

web.php => These routes are loaded by the <module_name>ServiceProvider within a group which contains the "web" middleware group and "<module_name>" prefix.

Views

Calling View: view('<module_name>::view_file_name')

You need to add module service provider to the list of providers in the config/app.php file and run

composer dump-autoload 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固