httpoz/hook
Composer 安装命令:
composer require httpoz/hook
包简介
Package for allowing and monitoring a[pp access.
关键字:
README 文档
README
Installation
Composer
Add the package to your project via composer.
composer require httpoz/hooks
Publish
Run this to publish the package's migrations
php artisan vendor:publish --provider="HttpOz\Hook\HookServiceProvider"
Middleware
This package comes with ValidateHookMiddleware. You need to add it to your app/Http/Kernel.php.
<?php /** * The application's route middleware. * * @var array */ protected $routeMiddleware = [ // ... 'validateHook' => \HttpOz\Hook\Http\Middleware\ValidateHookMiddleware::class, ];
Now you can add this middleware to your routes. You will also need the prefix, you can call it anything you want but the hook id itself should be the second segment in your url.
<?php // Route group Route::group(['prefix' => 'hooks/{hook}', 'middleware' => 'validateHook'], function(){ Route::resource('notification', 'NotificationController'); });
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-26