12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
-
- namespace Illuminate\Auth;
-
- use Exception;
-
- class AuthenticationException extends Exception
- {
- /**
- * All of the guards that were checked.
- *
- * @var array
- */
- protected $guards;
-
- /**
- * Create a new authentication exception.
- *
- * @param string $message
- * @param array $guards
- * @return void
- */
- public function __construct($message = 'Unauthenticated.', array $guards = [])
- {
- parent::__construct($message);
-
- $this->guards = $guards;
- }
-
- /**
- * Get the guards that were checked.
- *
- * @return array
- */
- public function guards()
- {
- return $this->guards;
- }
- }
|