jornatf/laravel-trait-generator
最新稳定版本:v1.0.0
Composer 安装命令:
composer require jornatf/laravel-trait-generator
包简介
A Laravel Package to make Trait with artisan CLI.
README 文档
README
A Laravel Package to make Trait with artisan CLI.
If you like this package you can Buy me a Coffee ☕️
Installation
Via composer:
composer require jornatf/laravel-trait-generator
Usage
Via artisan CLI:
php artisan make:trait Foo
The trait namespace is: App\Traits.
Trait generated:
<?php namespace App\Traits; trait Foo { /** * Method description. * * @return string */ public function methodName() { return "Hello World"; } }
Import trait:
<?php namespace App\Http\Controllers; use App\Traits\Foo; use App\Http\Controllers\Controller; class PostController extends Controller { use Foo; // your controller methods HERE. }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Feel free to contribute to this project to improve with new features or fix bugs 👍
Credits
License
The MIT License (MIT).
Please see License File for more information.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-23