shaka/laravel-trait-generator 问题修复 & 功能扩展

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

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

shaka/laravel-trait-generator

最新稳定版本:v1.0

Composer 安装命令:

composer require shaka/laravel-trait-generator

包简介

A Laravel package to generate traits

README 文档

README

This Laravel package provides a simple artisan command to quickly generate traits in your application. It is designed to be a developer-friendly tool that fits right into the workflow of a Laravel full-stack web developer.

Installation

You can install the package via composer:

composer require shaka/laravel-trait-generator:dev-stable

If you are not using Laravel's package auto-discovery, add the service provider to the providers array in config/app.php:

'providers' => [
    // ...
    Shaka\LaravelTraitGenerator\LaravelTraitGeneratorServiceProvider::class,
],

Usage

To generate a new trait, use the artisan command:

php artisan make:trait YourTraitName

This will create a new trait in the app/Traits directory.

Customization

You can publish the stub used by the package to customize the generated traits:

php artisan vendor:publish --provider="Shaka\LaravelTraitGenerator\LaravelTraitGeneratorServiceProvider" --tag="stubs"

This will publish the stub to stubs/vendor/laravel-trait-generator/trait.stub, where you can customize it as needed.

Credits

License

The Laravel Trait Generator is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固