Skip to content

Commit

Permalink
Use Arr::wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolaj Egelund committed Sep 2, 2019
1 parent 9a64270 commit 9a433fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace KABBOUCHI\NovaImpersonate;

use Laravel\Nova\Nova;
use Illuminate\Support\Arr;
use Laravel\Nova\Events\ServingNova;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
Expand Down Expand Up @@ -50,7 +51,7 @@ protected function routes()
return;
}

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

0 comments on commit 9a433fa

Please sign in to comment.