2017 © Pedro Peláez
 

library age-check

An age checker for Laravel

image

clumsy/age-check

An age checker for Laravel

  • Thursday, July 14, 2016
  • by flipjms
  • Repository
  • 1 Watchers
  • 2 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 2 % Grown

The README.md

Age-Check

Codacy Badge SensioLabsInsight, (*1)

A package to help create an age-check verification., (*2)

License

Clumsy Age-Check is open-sourced software licensed under the MIT license, (*3)

Installation

To get started with Age-Check, add to your composer.json file as a dependency:, (*4)

composer require clumsy/age-check:0.2.*

If you are using Laravel 4, stick to the branch 0.1:, (*5)

composer require clumsy/age-check:0.1.*

Configuration

After installing the Age-Check library, register the ServiceProvider in your config/app.php configuration file:, (*6)

'providers' => [
    // Other service providers...

    Clumsy\AgeCheck\AgeCheckServiceProvider::class,
],

Register the middleware in your app/Http/Kernel.php file:, (*7)

protected $routeMiddleware = [
        //Other middlewares...

        'age-check' => \Clumsy\AgeCheck\Http\Middleware\ValidateAge::class,
    ];

Publish the config file:, (*8)

php artisan vendor:publish --provider="Clumsy\AgeCheck\AgeCheckServiceProvider" --tag="config"

and edit it according to your project. Usually you want to edit the success-url and fail-url which are the urls where the user will get redirected in case of fail or success., (*9)

Usage

Create a route group with the age-check middleware in it:, (*10)

Route::group(
    [
        'middleware' => ['age-check']
    ],
    function() {
        //Your routes goes here...
    }
);

This package gives you a basic view with a basic form without styling. You should change the config file to use one of you own and use the partials views provided to help you generate the form., (*11)

You can also publish the views and change them to suit your needs:, (*12)

php artisan vendor:publish --provider="Clumsy\AgeCheck\AgeCheckServiceProvider" --tag="views"

The Versions

14/07 2016

dev-master

9999999-dev

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

14/07 2016

v0.2.6

0.2.6.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

14/07 2016

v0.2.5

0.2.5.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

14/07 2016

v0.2.4

0.2.4.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

14/07 2016

v0.2.3

0.2.3.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

14/07 2016

v0.2.2

0.2.2.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

14/07 2016

v0.2.1

0.2.1.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

13/07 2016

v0.2.0

0.2.0.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

laravel cms block age-check

13/07 2016

0.1.x-dev

0.1.9999999.9999999-dev

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

13/07 2016

v0.1.2

0.1.2.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos

13/07 2016

v0.1.1

0.1.1.0

An age checker for Laravel

  Sources   Download

MIT

The Requires

 

by Filipe Santos