Property | Type | Description | |
---|---|---|---|
$namespace | |||
$transformers |
Method | Description | |
---|---|---|
__construct ( Illuminate\Config\Repository $config ) | ||
buildJavaScriptSyntax ( array $variables ) : string | ||
getAllTransformers ( ) : |
||
getTransformer ( mixed $value ) : Spatie\BladeJavaScript\Transformers\Transformer | ||
render ( $arguments ) : string |
Method | Description | |
---|---|---|
buildNamespaceDeclaration ( ) : string | ||
buildVariableInitialization ( string $key, mixed $value ) : string | ||
normalizeArguments ( array $arguments ) : mixed | ||
optimizeValueForJavaScript ( mixed $value ) : string |
public __construct ( Illuminate\Config\Repository $config ) | ||
$config | Illuminate\Config\Repository |
public buildJavaScriptSyntax ( array $variables ) : string | ||
$variables | array | |
return | string |
protected buildNamespaceDeclaration ( ) : string | ||
return | string |
public getAllTransformers ( ) : |
||
return |
public getTransformer ( mixed $value ) : Spatie\BladeJavaScript\Transformers\Transformer | ||
$value | mixed | |
return | Spatie\BladeJavaScript\Transformers\Transformer |
protected normalizeArguments ( array $arguments ) : mixed | ||
$arguments | array | |
return | mixed |
protected optimizeValueForJavaScript ( mixed $value ) : string | ||
$value | mixed | |
return | string |