ajayexpert/artisan-trait-maker 问题修复 & 功能扩展

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

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

ajayexpert/artisan-trait-maker

Composer 安装命令:

composer require ajayexpert/artisan-trait-maker

包简介

Artisan Command To Create A trait Stub

README 文档

README

Latest Version on Packagist Software License Total Downloads

TraitMaker creates an artisan command that lets you quickly create a trait folder and trait stub. If the folder already exists, you can use the command to place new traits in the exsiting folder.

Install

Via Composer

composer require ajayexpert/artisan-trait-maker

In your app/config/app.php file, add the following to the providers array:

AjayExpert\TraitMaker\TraitMakerServiceProvider::class,

Usage

Once installed, you should see make:trait as one of the artisan commands when you run:

php artisan list

To use this command, supply it with two arguments, the first being the name of the trait, and the second being the name of the folder you want it to reside in. If the folder does not exist, it will be created for you.

For example:

php artisan make:trait TestTrait

This would create a directory named Traits in your app directory with a php file named TestTrait.php, which would contain the following stub:

<?php
namespace App\Traits

trait TestTrait
{

}

Please note, the package currently only supports trait folders that are in the app folder, for example:

app/Traits

Security

If you discover any security related issues, please email ajay.expert@live.com instead of using the issue tracker.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固