class FileEngine implements Engine (View source)

Properties

protected Filesystem $files

The filesystem instance.

Methods

__construct(Filesystem $files)

Create a new file engine instance.

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

Get the evaluated contents of the view.

Details

__construct(Filesystem $files)

Create a new file engine instance.

Parameters

Filesystem $files

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

Get the evaluated contents of the view.

Parameters

string $path
array $data

Return Value

string