PHP 8.3.31
Preview: AuthenticationException.php Size: 1.81 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Auth/AuthenticationException.php

<?php

namespace Illuminate\Auth;

use Exception;
use Illuminate\Http\Request;

class AuthenticationException extends Exception
{
    /**
     * All of the guards that were checked.
     *
     * @var array
     */
    protected $guards;

    /**
     * The path the user should be redirected to.
     *
     * @var string|null
     */
    protected $redirectTo;

    /**
     * The callback that should be used to generate the authentication redirect path.
     *
     * @var callable
     */
    protected static $redirectToCallback;

    /**
     * Create a new authentication exception.
     *
     * @param  string  $message
     * @param  array  $guards
     * @param  string|null  $redirectTo
     * @return void
     */
    public function __construct($message = 'Unauthenticated.', array $guards = [], $redirectTo = null)
    {
        parent::__construct($message);

        $this->guards = $guards;
        $this->redirectTo = $redirectTo;
    }

    /**
     * Get the guards that were checked.
     *
     * @return array
     */
    public function guards()
    {
        return $this->guards;
    }

    /**
     * Get the path the user should be redirected to.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return string|null
     */
    public function redirectTo(Request $request)
    {
        if ($this->redirectTo) {
            return $this->redirectTo;
        }

        if (static::$redirectToCallback) {
            return call_user_func(static::$redirectToCallback, $request);
        }
    }

    /**
     * Specify the callback that should be used to generate the redirect path.
     *
     * @param  callable  $redirectToCallback
     * @return void
     */
    public static function redirectUsing(callable $redirectToCallback)
    {
        static::$redirectToCallback = $redirectToCallback;
    }
}

Directory Contents

Dirs: 7 × Files: 16

Name Size Perms Modified Actions
Access DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Console DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Events DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Listeners DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Passwords DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
2.12 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.81 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
8.31 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
3.04 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.24 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.43 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
5.51 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
7.05 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.69 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.48 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
979 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.83 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.10 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
27.28 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
3.42 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).