定制 trieunb/modules 二次开发

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

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

trieunb/modules

Composer 安装命令:

composer require trieunb/modules

包简介

A package module of team ans-asia build for dev

README 文档

README

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

Documentation

Installation

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

Run the following command from your projects root

composer require "trieunb/modules @dev"

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

Service Provider

Trieunb\Modules\ModuleServiceProvider::class,

Getting started

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

This is how the generated module would look like:

laravel-project/
    app/
    └── Modules/
        └── Demo/
            ├── Controllers/
            │   └── DemoController.php
            ├── Models/
            │   └── Demo.php
            ├── Views/
            │   └── index.blade.php
            └── routes.php
                

Usage

The generated RESTful Resource Controller and the corresponding routes.php make it easy to dive in. In my example you would see the output from the Modules/Demo/Views/index.blade.php when you open laravel-project:8000/demo in your browser.

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-30