ajout middleware auth

This commit is contained in:
Cassandre Cantet 2018-10-15 23:59:41 +02:00
parent 480a27897e
commit c515484670
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class ImagesServiceProvider extends ServiceProvider
$this->app->router->group([
'namespace' => '\Meoran\Images\Http\Controllers',
], function ($router) {
$addAuthMiddleware = config('middlewareAuth', false);
$addAuthMiddleware = config('image.middlewareAuth', false);
$authMiddleware = [];
if ($addAuthMiddleware) {
$authMiddleware = ['middleware' => 'auth'];