\duncan3dc\LaravelBlade

Standalone class for generating text using blade templates.

Summary

Methods
Properties
Constants
setInstance()
getInstance()
__callStatic()
registerDirectives()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$instance

$instance : \duncan3dc\Laravel\BladeInstance

Type

\duncan3dc\Laravel\BladeInstance — The internal cache of the BladeInstance to only instantiate it once

Methods

setInstance()

setInstance(\duncan3dc\Laravel\BladeInstance  $instance) : void

Set the BladeInstance object to use.

Parameters

\duncan3dc\Laravel\BladeInstance $instance

The instance to use

getInstance()

getInstance() : \duncan3dc\Laravel\BladeInterface

Get the BladeInstance object.

Returns

\duncan3dc\Laravel\BladeInterface

__callStatic()

__callStatic(string  $name, array  $arguments) : mixed

Allow all the methods of BladeInstance to be called.

Parameters

string $name

The name of the method to run

array $arguments

The parameters to pass to the method

Returns

mixed

registerDirectives()

registerDirectives(\Illuminate\View\Compilers\CompilerInterface  $blade) : void

Add extra directives to the blade templating compiler.

Parameters

\Illuminate\View\Compilers\CompilerInterface $blade

The compiler to extend