承接 devhridoy/l6modular 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

devhridoy/l6modular

Composer 安装命令:

composer require devhridoy/l6modular

包简介

Modular pattern generator for Laravel 6.It is orginaly created by ArtemSchander, i was just implements for laravel 6

README 文档

README

This package gives you the ability to use Laravel 6 with module system. You can simply drop or generate modules with their own controllers, models, views, translations and a routes file into the app/Modules folder and go on working with them.

Attention

"This package originally created by artem-schander", I just modified some code and implement for Laravel 6. Thanks.

Dcumentation

  • Installation
  • Getting started
  • Usage

Istallation

The best way to install this package is through your terminal via Composer.

Run the following command from your projects root

composer require devhridoy/l6modular

Once this operation is complete, simply add the service provider to your project's config/app.php and you're done.

Service Provider

Devhridoy\L6modular\ModuleServiceProvider::class

Setting Started

The built in Artisan command php artisan make:module name [--no-migration] [--no-translation] generates a ready to use module in the app/Modules folder and a migration/translation if necessary.

Since version 1.3.0 you can generate modules named with more than one word, like foo-bar.

This is how the generated module would look like:

laravel-project/
    app/
    └── Modules/
        └── FooBar/
            ├── Controllers/
            │   └── FooBarController.php
            ├── Models/
            │   └── FooBar.php
            ├── Views/
            │   └── index.blade.php
            ├── Translations/
            │   └── en/
            │       └── example.php
            ├── routes
            │   ├── api.php
            │   └── web.php
            └── helper.php

Usage

The generated RESTful Resource Controller and the corresponding routes/web.php make it easy to dive in. In my example you would see the output from the Modules/FooBar/Views/index.blade.php by opening laravel-project:8000/foo-bar in your browser.

Update 1.0.0 For Laravel 6

You have to follow the upper camel case name convention for the module folder. If you had a Modules/foo folder you have to rename it to Modules/Foo.

Also there are changes in the app/config/modules.php file. Now you have to return an array with the key enable instead of list.

License

L6 Modular is licensed under the terms of the MIT License (See LICENSE file for details).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固