Showing 10 of 2,044 results.

setAnonymousComponentNamespaces | Blade Compiler

Sets and overrides all anonymous component namespaces. In default setups, this is set to the return value of Illuminate\View\Compilers\BladeCompiler::getAnonymousComponentNamespaces() Argument Description $anonymousNamespaces The anonymous...

setClassComponentAliases | Blade Compiler

Sets and overrides all class component aliases. In default setups, this is set to the return value of Illuminate\View\Compilers\BladeCompiler::getClassComponentAliases() Argument Description $aliases The class component aliases. 1 <?php 2 3 use...

setClassComponentNamespaces | Blade Compiler

Sets and overrides all class component namespaces. In default setups, this is set to the return value of Illuminate\View\Compilers\BladeCompiler::getClassComponentNamespaces() Argument Description $namespaces The class component namespaces. 1...

setAnonymousComponentPaths | Blade Compiler

Sets and overrides all anonymous component paths. In default setups, this is set to the return value of Illuminate\View\Compilers\BladeCompiler::getAnonymousComponentPaths() Argument Description $paths The anonymous component paths. 1 <?php 2 3...

Swapping Antlers Layouts and Passing Data to Layouts

…creating a custom Statamic Tag. Our custom tag will allow us to dynamically change the layout used by an Antlers template, similar to Blade's @extends directive. The results of this article are available as a Statamic addon through the...

Laravel Artisan Generator Command: The make:model Command

…generate new Eloquent model classes. It requires a name to be supplied; this name will become the name of the generated class and created file. A migration file can also be generated for the model by setting the --migration flag (or by using the...

getFirstFatalError | The Document Parser

Retrieves the first fatal error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. Fatal errors are considered those that would produce invalid compiled PHP code,...

Laravel 4: Be Careful With Your After Filters

…ng inside a repository or controller. When the last line is called, the $response->setContent($output) , PHP will cast the view object to a string, which will run its render() function again . So, if there were nested queries inside the view...