Package Data | |
---|---|
Maintainer Username: | aitiba |
Maintainer Contact: | freelance@aitoribanez.com (Aitor Ibañez) |
Package Create Date: | 2015-05-17 |
Package Last Update: | 2015-05-27 |
Language: | PHP |
License: | GPL-3.0 |
Last Refreshed: | 2024-11-14 15:05:37 |
Package Statistics | |
---|---|
Total Downloads: | 19 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
AuthBasicMiddleware has the next permissions:
Add this package to your composer.json:
"require": {
"hazicms/auth": "dev-master"
}
Run composer update
composer update
Add the ServiceProviders to the providers array in config/app.php
.
'HaziCms\Auth\AuthServiceProvider'
Publish config files for generators, modules and images:
php artisan vendor:publish --provider="HaziCms\Generator\Generator\GeneratorServiceProvider"
Add those lines to app\Http\Kernel.php
file:
protected $routeMiddleware = [
'hazicms.basic' => 'HaziCms\Http\Middleware\AuthBasicMiddleware',
];
Add middleware to controller's __construct() method:
$this->middleware('hazicms.basic');
You are ready! :-)
This module is created by Aitor Ibañez.
Bugs & Forks are welcomed :)