Package Data | |
---|---|
Maintainer Username: | pascalschwientek |
Maintainer Contact: | pascal@plsk.de (Pascal Schwientek) |
Package Create Date: | 2016-03-01 |
Package Last Update: | 2016-04-29 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:03:56 |
Package Statistics | |
---|---|
Total Downloads: | 359 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 1 |
Re-Auth users for sensitive parts of your app.
From the command line, run:
composer require gocrew/laravel-reauth
For your Laravel app, open config/app.php
and, within the providers
array, append:
gocrew\LaravelReAuth\ServiceProvider::class
This will bootstrap the package into Laravel.
In your app\Http\Kernel.php
file, add the reauth middleware to the $routeMiddleware
array.
protected $routeMiddleware = [
// ...
'reauth' => \gocrew\LaravelReAuth\Http\Middleware\Reauthenticate::class,
// ...
];
Apply the middleware on a route you want to protect:
Route::get('settings', ['uses' => 'Controller@getSettings', 'middleware' => 'reauth']);
Done!
If you need a more advanced setup, no problem. Everything is overwritable and everything is as modular as possible.
The contents of this repository is released under the MIT license.