定制 dannyvilla/artisan-commands 二次开发

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

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

dannyvilla/artisan-commands

最新稳定版本:v1.2.1

Composer 安装命令:

composer require dannyvilla/artisan-commands

包简介

This package provides a set of artisan commands for Laravel

README 文档

README

This package provides a set of new artisan commands for Laravel

Installation

Use the package manager composer to install dannyvilla/artisan-commands

composer require dannyvilla/artisan-commands

Usage

View command

Generate an empty view

php artisan make:view folder.subfolder.view

Generate a view with a layout

php artisan make:view folder.subfolder.view --layout=app

Repository command

Generate an empty repository file

php artisan make:repository UserRepository

Generate a repository with a model

php artisan make:repository UserRepository --model=User

OR

php artisan make:repository UserRepository --model=App\Models\User

Service command

Generate a serfvice class

php artisan make:service PayPalPaymentService

Lang command

Generate a new locale file

php artisan make:lang myFilanem --locale=es

Generate a new json locale file

php artisan make:lang --locale=es --json

Class command

Generate a class

php artisan make:class App\Handlers\UserHandlers

or you can use a dot(.) as separator

php artisan make:class App.Handlers.UserHandlers --separator=.

Generate a trait

php artisan make:class App\Traits\MyTrait --kind=trait

Generate an interface

php artisan make:class App\Contracts\IClassable --kind=interface

File command

Generate a generic file

php artisan make:file folder.subfolder1.subfolder2.filename --ext=php

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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