Showing 10 of 1,322 results.

Creating the Tag Method | Building a Simple Statamic Request Addon

…f a URL query parameter exists. The first thing that I like to do is decide how the addon tag will be used within an Antlers template: 1 {{ if { request : has input = " q " } }} 2 3 {{# Do something here. #}} 4 5 {{ /if }} That looks pretty good;...

Laravel Artisan Tinker: The ls Command

…> ls 7 Variables: $someVariable, $user In the previous example you can see that the ls command listed the variables $someVariable and $user . The ls command can be used to learn more about the $user variable; this is because the $user variable is...

Directive Arguments Line Span | The Validate Command

Class : DirectiveArgumentsSpanningLinesValidator The line-span validator emits a validation error when the directive's arguments span more than a specified number of lines. The following template: 1 @if ( $ something 2 == $ this && 3 ' this ' == '...

Laravel Facades Part One: An Introduction to Facades

…me component already registered in the service container. Facades are typically used to provide a simpler interface to an complex underlying subsystem. While some facades provide "shortcut" methods, most of Laravel's facades act like proxies by...

Filter Search