ajout middleware auth
This commit is contained in:
parent
480a27897e
commit
c515484670
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue