W3cubDocs

/Laravel 8

FileEngine

class FileEngine 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.

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/View/Engines/FileEngine.html