Showing 10 of 2,055 results.

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

Laravel 5.5 String Helper Method: finish

The finish helper method will make sure that a given $value always ends with exactly one occurrence of the $cap . This helper method is incredibly useful when construction URIs or file paths. The $cap can be any string of characters, and does not...

License

Attribute Renderer for Statamic is free software, released under the MIT license.Copyright (c) <Johnathon Koster> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...