kubis/agegate

Laravel Package for websites that requires age validation

v1.1.2 2019-06-24 13:26 UTC

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

  1. /config/agegate.php for package configurations
  2. /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.