ajout middleware auth
This commit is contained in:
parent
480a27897e
commit
c515484670
|
@ -46,7 +46,7 @@ class ImagesServiceProvider extends ServiceProvider
|
||||||
$this->app->router->group([
|
$this->app->router->group([
|
||||||
'namespace' => '\Meoran\Images\Http\Controllers',
|
'namespace' => '\Meoran\Images\Http\Controllers',
|
||||||
], function ($router) {
|
], function ($router) {
|
||||||
$addAuthMiddleware = config('middlewareAuth', false);
|
$addAuthMiddleware = config('image.middlewareAuth', false);
|
||||||
$authMiddleware = [];
|
$authMiddleware = [];
|
||||||
if ($addAuthMiddleware) {
|
if ($addAuthMiddleware) {
|
||||||
$authMiddleware = ['middleware' => 'auth'];
|
$authMiddleware = ['middleware' => 'auth'];
|
||||||
|
|
Loading…
Reference in New Issue