kubis / agegate
Laravel Package for websites that requires age validation
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/kubis/agegate
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: 2025-10-29 03:03:03 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.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.