ajayexpert/artisan-observer-maker
Composer 安装命令:
composer require ajayexpert/artisan-observer-maker
包简介
Artisan Command To Create A Observer Stub
关键字:
README 文档
README
ObserverMaker creates an artisan command that lets you quickly create a observer stub.
Install
Via Composer
composer require ajayexpert/artisan-observer-maker
In your app/config/app.php file, add the following to the providers array:
AjayExpert\ObserverMaker\ObserverMakerServiceProvider::class,
Usage
Once installed, you should see make:observer 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 observer, 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:observer TestObserver
This would create a directory named Observers in your app directory with a php file named TestObserver.php, which would contain the following stub:
<?php
namespace App\Observers;
use App\Test;
class TestObserver
{
}
Please note, the package currently only supports observer folders that are in the app folder, for example:
app/Observers
Use Observers in laravel see the Documentation
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.
统计信息
- 总下载量: 352
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-13