class PublishAssets

Methods

__construct(Application $app, Filesystem $files)

Create a new listener instance.

void
handle(ServeCommandStarted $event)

Publish the authentication page assets when serving the runtime skeleton.

bool
isInsideBasePath(string $path)

Determine if the given path resolves inside the application's base path.

Details

at line 20
__construct(Application $app, Filesystem $files)

Create a new listener instance.

Parameters

Application $app
Filesystem $files

at line 32
void handle(ServeCommandStarted $event)

Publish the authentication page assets when serving the runtime skeleton.

Only the disposable runtime copy owned by this process is written to. Other applications keep their existing assets and use the vendor:publish command.

Parameters

ServeCommandStarted $event

Return Value

void

at line 61
protected bool isInsideBasePath(string $path)

Determine if the given path resolves inside the application's base path.

The nearest existing ancestor is resolved, so a public path or directory that links outside the runtime copy is never written through.

Parameters

string $path

Return Value

bool