smskin/lumen-make 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

smskin/lumen-make

最新稳定版本:v1.0.0

Composer 安装命令:

composer require smskin/lumen-make

包简介

Lumen make adds more make commands to lumen for jobs, controllers, middleware, etc.

README 文档

README

A package built for lumen that ports most of the make commands from laravel.

#Info This package based on michaelb/lumen-make (https://github.com/michaelbonds/lumen-make) library. Added:

  • command for generate request (make:request)
  • providers for work with requests.

Installation

Just run the following in the root of your project

> composer require smskin/lumen-make

Uncomment line in bootstrap/app.php

$app->register(App\Providers\EventServiceProvider::class);

Add line to bootstrap/app.php for enable generators

//for enable generator permanently
$app->register(SMSkin\LumenMake\LumenMakeServiceProvider::class);

//for enable generator in development mode
if (env('APP_ENV') != 'production' || env('APP_ENV') == 'local') {
    $app->register(SMSkin\LumenMake\LumenMakeServiceProvider::class);
}

Add line to bootstrap/app.php for enable form requests

$app->register(SMSkin\LumenMake\Providers\FormRequestServiceProvider::class);

Requests info

In generated requests used FormRequest from this library. If you want migrate to Laravel framework, change use line in all generated requests

use SMSkin\LumenMake\Requests\FormRequest; 
\\to
use Illuminate\Foundation\Http\FormRequest;

Commands

  • make:job {name} - Makes a new job class in Jobs/
  • make:console {name} - Makes a new console command in Console/Commands/
  • make:controller {name} - Makes a new restful controller in Http/Controllers/
  • make:model {name} - Makes a new model in /
  • make:middleware {name} - Makes a new middleware class in Http/Middleware/
  • make:exception {name} - Makes a new exception class in Exceptions/
  • make:event {name} - Makes a new event class in Events/
  • make:request {name} - Makes a new request class in Http/Requests/

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固