定制 rifrocket/trait-console 二次开发

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

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

rifrocket/trait-console

Composer 安装命令:

composer require rifrocket/trait-console

包简介

Console command to create Traits for the Laravel

README 文档

README

Latest Version on Packagist Quality Score Total Downloads

Laravel does not provide the command to create Traits out of the box but Laravel does provide commands generation for almost all kinds of components. This package introduces the convenience of Laravel's artisan makes for trait generation.

Installation

You can install the package via composer:

composer require rifrocket/trait-console

Registering the service provider

For Laravel 5.4 and lower, add the following line to your config/app.php

Rifrocket\TraitConsole\TraitConsoleServiceProvider::class,

Usage

trait will be created in the App/Traits directory.

php artisan make:trait NameOfYourTrait

You may create traits in subdirectories to organize them as per your need

php artisan make:trait Subdirectory/NameOfYourTrait

trait will be created in the App/Traits/Subdirectory directory and namespaced appropriately.

Arguments

-b or --boot

php artisan make:trait NameOfYourTrait -b MethodName

Creates a trait with a boot method named bootMethodName.

-s or --scope

php artisan make:trait NameOfYourTrait -s MethodName

Creates a trait with a scope method named scopeMethodName.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email developer.tech.dev@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固