Skip to content

Commit

Permalink
Fix config call
Browse files Browse the repository at this point in the history
  • Loading branch information
willrowe authored Oct 30, 2024
1 parent e3419c9 commit a724da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Exceptions/AuthenticationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace Laravel\Passport\Exceptions;

use Illuminate\Auth\AuthenticationException as Exception;
use Illuminate\Support\Facades\Config;

class AuthenticationException extends Exception
{
public function __construct($message = 'Unauthenticated.', array $guards = null, $redirectTo = null)
{
if (is_null($guards)) {
$guards = [config('passport.guard')];
$guards = [Config::get('passport.guard')];
}

parent::__construct($message, $guards, $redirectTo);
Expand Down

0 comments on commit a724da9

Please sign in to comment.