kubis/agegate
Composer 安装命令:
composer require kubis/agegate
包简介
Laravel Package for websites that requires age validation
README 文档
README
Laravel 5.8.+ package for websites that requires age validation.
Installation
Via Composer
$ composer require kubis/agegate
After instalation, publish the config and template files for full project implementation
$ php artisan vendor:publish --provider="Kubis\AgeGate\AgeGateServiceProvider"
Usage
Filesystem
/config/agegate.phpfor package configurations/resources/views/vendor/kubis/agegate/folder to change templates.
Middleware
Packages offers a middleware age-gate to protect desired routes (or all) behind a form verification. Verification is done by package according to configuration.
Example
Route::group(['middleware' => 'age-gate'], function(){ Route::get('/', function () { return view('pages.homepage'); }); });
Change log
Please see the changelog for more information on what has changed recently.
[TODO] Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email daniel[@]kubisinteractive.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-24