Skip to content

Commit

Permalink
use array_wrap for middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Dec 30, 2018
1 parent c05879c commit 501f245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function routes()
return;
}

Route::middleware(config('nova-impersonate.middleware.base'))
Route::middleware(array_wrap(config('nova-impersonate.middleware.base')))
->prefix('nova-impersonate')
->group(__DIR__ . '/../routes/api.php');

Expand Down

0 comments on commit 501f245

Please sign in to comment.