kubis / agegate
Laravel Package for websites that requires age validation
Requires
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-05-29 04:28:22 UTC
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.php
for 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.