PHP Class App\Http\Middleware\RedirectIfAuthenticated

Show file Open project: Class Usage Examples

Protected Properties

Property Type Description
$auth Guard The Guard implementation.
$auth Illuminate\Contracts\Auth\Guard The Guard implementation.

Public Methods

Method Description
__construct ( Guard $auth ) Create a new filter instance.
__construct ( Illuminate\Contracts\Auth\Guard $auth ) Create a new filter instance.
__construct ( Illuminate\Contracts\Auth\Guard $auth ) : void Create a new filter instance.
handle ( $request, Closure $next )
handle ( $request, Closure $next )
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.
handle ( Illuminate\Http\Request $request, Closure $next, string | null $guard = null ) : mixed Handle an incoming request.
handle ( \Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.

Method Details

__construct() public method

Create a new filter instance.
public __construct ( Guard $auth )
$auth Guard

__construct() public method

Create a new filter instance.
public __construct ( Illuminate\Contracts\Auth\Guard $auth )
$auth Illuminate\Contracts\Auth\Guard

__construct() public method

Create a new filter instance.
public __construct ( Illuminate\Contracts\Auth\Guard $auth ) : void
$auth Illuminate\Contracts\Auth\Guard
return void

handle() public method

public handle ( $request, Closure $next )
$next Closure

handle() public method

public handle ( $request, Closure $next )
$next Closure

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
return mixed

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next, string | null $guard = null ) : mixed
$request Illuminate\Http\Request
$next Closure
$guard string | null
return mixed

handle() public method

Handle an incoming request.
public handle ( \Illuminate\Http\Request $request, Closure $next ) : mixed
$request \Illuminate\Http\Request
$next Closure
return mixed

Property Details

$auth protected property

The Guard implementation.
protected Guard $auth
return Guard

$auth protected property

The Guard implementation.
protected Guard,Illuminate\Contracts\Auth $auth
return Illuminate\Contracts\Auth\Guard