Skip to content

Commit

Permalink
Merge pull request #59 from nicoeg/fix-array-wrap
Browse files Browse the repository at this point in the history
Use Arr::wrap
  • Loading branch information
KABBOUCHI authored Sep 2, 2019
2 parents 9a64270 + 9a433fa commit 691070e
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 691070e

Please sign in to comment.