class PhpEngine implements Engine (View source)

Properties

protected Filesystem $files

The filesystem instance.

Methods

void
__construct(Filesystem $files)

Create a new file engine instance.

string
get(string $path, array $data = [])

Get the evaluated contents of the view.

string
evaluatePath(string $path, array $data)

Get the evaluated contents of the view at the given path.

void
handleViewException(Throwable $e, int $obLevel)

Handle a view exception.

Details

void __construct(Filesystem $files)

Create a new file engine instance.

Parameters

Filesystem $files

Return Value

void

string get(string $path, array $data = [])

Get the evaluated contents of the view.

Parameters

string $path
array $data

Return Value

string

protected string evaluatePath(string $path, array $data)

Get the evaluated contents of the view at the given path.

Parameters

string $path
array $data

Return Value

string

protected void handleViewException(Throwable $e, int $obLevel)

Handle a view exception.

Parameters

Throwable $e
int $obLevel

Return Value

void

Exceptions

Throwable

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.