Properties

$compilers

$compilers : array

All of the compiler functions used by Blade.

Type

array

Tags

None found

$extensions

$extensions : array

An array of user defined compilers.

Type

array

Tags

None found

Methods

sharpen()

sharpen() : void

Register the Blade view engine with Laravel.

static

Tags

None found

extend()

extend(\Closure  $compiler) : void

Register a custom Blade compiler.

Blade::extend(function($view) { return str_replace('foo', 'bar', $view); });

Parameters

Closure $compiler

static

Tags

None found

expired()

expired(string  $view, string  $path) : boolean

Determine if a view is "expired" and needs to be re-compiled.

Parameters

string $view
string $path

Returns

boolean

static

Tags

None found

compile()

compile(  $view) : string

Compiles the specified file containing Blade pseudo-code into valid PHP.

Parameters

$view

Returns

string

static

Tags

None found

compile_string()

compile_string(string  $value, \Laravel\View  $view = null) : string

Compiles the given string containing Blade pseudo-code into valid PHP.

Parameters

string $value
LaravelView $view

Returns

string

static

Tags

None found

matcher()

matcher(string  $function) : string

Get the regular expression for a generic Blade function.

Parameters

string $function

Returns

string

static

Tags

None found

compiled()

compiled(  $path) : string

Get the fully qualified path for a compiled view.

Parameters

$path

Returns

string

static

Tags

None found

compile_layouts()

compile_layouts(string  $value) : string

Rewrites Blade "@layout" expressions into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

extract()

extract(string  $value,   $expression) : string

Extract a variable value out of a Blade expression.

Parameters

string $value
$expression

Returns

string

static

Tags

None found

compile_comments()

compile_comments(string  $value) : string

Rewrites Blade comments into PHP comments.

Parameters

string $value

Returns

string

static

Tags

None found

compile_echos()

compile_echos(string  $value) : string

Rewrites Blade echo statements into PHP echo statements.

Parameters

string $value

Returns

string

static

Tags

None found

compile_forelse()

compile_forelse(string  $value) : string

Rewrites Blade "for else" statements into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_empty()

compile_empty(string  $value) : string

Rewrites Blade "empty" statements into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_endforelse()

compile_endforelse(string  $value) : string

Rewrites Blade "forelse" endings into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_structure_openings()

compile_structure_openings(string  $value) : string

Rewrites Blade structure openings into PHP structure openings.

Parameters

string $value

Returns

string

static

Tags

None found

compile_structure_closings()

compile_structure_closings(string  $value) : string

Rewrites Blade structure closings into PHP structure closings.

Parameters

string $value

Returns

string

static

Tags

None found

compile_else()

compile_else(string  $value) : string

Rewrites Blade else statements into PHP else statements.

Parameters

string $value

Returns

string

static

Tags

None found

compile_unless()

compile_unless(string  $value) : string

Rewrites Blade "unless" statements into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_endunless()

compile_endunless(string  $value) : string

Rewrites Blade "unless" endings into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_includes()

compile_includes(string  $value) : string

Rewrites Blade @include statements into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_render()

compile_render(string  $value) : string

Rewrites Blade @render statements into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_render_each()

compile_render_each(string  $value) : string

Rewrites Blade @render_each statements into valid PHP.

Parameters

string $value

Returns

string

static

Tags

None found

compile_yields()

compile_yields(string  $value) : string

Rewrites Blade @yield statements into Section statements.

The Blade @yield statement is a shortcut to the Section::yield method.

Parameters

string $value

Returns

string

static

Tags

None found

compile_yield_sections()

compile_yield_sections(  $value) : string

Rewrites Blade yield section statements into valid PHP.

Parameters

$value

Returns

string

static

Tags

None found

compile_section_start()

compile_section_start(string  $value) : string

Rewrites Blade @section statements into Section statements.

The Blade @section statement is a shortcut to the Section::start method.

Parameters

string $value

Returns

string

static

Tags

None found

compile_section_end()

compile_section_end(string  $value) : string

Rewrites Blade @endsection statements into Section statements.

The Blade @endsection statement is a shortcut to the Section::stop method.

Parameters

string $value

Returns

string

static

Tags

None found

compile_extensions()

compile_extensions(string  $value) : string

Execute user defined compilers.

Parameters

string $value

Returns

string

static

Tags

None found