PHP Class Spatie\DemoMode\DemoMode

Datei anzeigen Open project: spatie/laravel-demo-mode

Protected Properties

Property Type Description
$config array

Public Methods

Method Description
__construct ( Illuminate\Config\Repository $config )
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.

Protected Methods

Method Description
hasDemoAccess ( Illuminate\Http\Request $request ) : boolean
protectedByDemoMode ( Illuminate\Http\Request $request ) : boolean

Method Details

__construct() public method

public __construct ( Illuminate\Config\Repository $config )
$config Illuminate\Config\Repository

handle() public method

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

hasDemoAccess() protected method

protected hasDemoAccess ( Illuminate\Http\Request $request ) : boolean
$request Illuminate\Http\Request
return boolean

protectedByDemoMode() protected method

protected protectedByDemoMode ( Illuminate\Http\Request $request ) : boolean
$request Illuminate\Http\Request
return boolean

Property Details

$config protected_oe property

protected array $config
return array