Property | Type | Description | |
---|---|---|---|
$app | Illuminate\Foundation\Application | The Illuminate application instance. | |
$appPath | string | Path to the root of the Laravel application. | |
$env | string | The Laravel testing environment. |
Method | Description | |
---|---|---|
__construct ( string $env, string $appPath ) | Constructor. | |
getAppPath ( ) : string | Get the root Laravel application path. | |
getEnv ( ) : string | Get the Laravel application environment being used. | |
refreshApplication ( Illuminate\Foundation\Application | null $app = null ) : void | Refresh the application instance. |
Method | Description | |
---|---|---|
createApplication ( ) : Illuminate\Foundation\Application | Creates a Laravel application. |
public __construct ( string $env, string $appPath ) | ||
$env | string | Laravel testing environment. 'testing' by default |
$appPath | string | Path to the Laravel bootstrap dir |
protected createApplication ( ) : Illuminate\Foundation\Application | ||
return | Illuminate\Foundation\Application |
public getAppPath ( ) : string | ||
return | string | Root laravel app path |
public refreshApplication ( Illuminate\Foundation\Application | null $app = null ) : void | ||
$app | Illuminate\Foundation\Application | null | Optionally provide your own unbooted Laravel Application instance. This parameter can largely be ignored and is used just for unit testing |
return | void |
protected Application,Illuminate\Foundation $app | ||
return | Illuminate\Foundation\Application |
protected string $appPath | ||
return | string |