Skip to content

Commit

Permalink
fix for array helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthaksavvy committed Sep 19, 2019
1 parent 35d358a commit eb79e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Exception/MultiAuthHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Bitfumes\Multiauth\Exception;

use Illuminate\Support\Arr;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as AppHandler;

Expand All @@ -13,7 +14,7 @@ protected function unauthenticated($request, AuthenticationException $exception)
return response()->json(['error' => 'Unauthenticated.'], 401);
}

$guard = array_get($exception->guards(), 0);
$guard = Arr::get($exception->guards(), 0);

switch ($guard) {
case 'admin':
Expand Down

0 comments on commit eb79e9c

Please sign in to comment.