Showing 10 of 2,055 results.

Laravel Application Helper: response

…upplied to the response function, an implementation of Illuminate\Contracts\Routing\ResponseFactory will be returned (by default this is an instance of Illuminate\Routing\ResponseFactory ). The following example demonstrates some of the different...

Introducing Forte | Laracon, Blade and What's Next

All good projects need a great name, so I'd like to introduce you to Forte. From Merriam-Webster : the part of a sword or foil blade that is between the middle and the hilt and that is the strongest part of the blade A short, punchy word that is...

Pascal Case | Laravel 5.5 String Helper Function: studly

Laravel's studly method can also be used to generate Pascal Cased style strings. Both styles are the same as camel case with the first letter capitalized. Because the studly method does not affect the case of any letters after the first letter, we...

Configuring the Compiler | Blade Compiler

The provided compiler implementation works to be independent of the core compiler in many ways. As such, it needs to be taught about components such as namespaces, aliases, custom conditions or directives, etc.

Laravel MessageBag Public API: first

first($key = null, $format = null) The first method will return the first message in the MessageBag instance for a given $key . If the $key is null the first method will return the first message in the MessageBag instance. If there are no messages...

Laravel 5: String Translation Public API

…cessing of language files. The Translator class internally contains an implementation of Illuminate\Contracts\Translation\Loader , which is an instance of Illuminate\Translation\FileLoader by default. The following explanations of the various API...

The Finish Line | Building a Simple Statamic Request Addon

Congratulations you've just implemented a really simple Statamic addon tag that can be used to learn about request input. It would be trivial to expand this addon tag to learn more about the incoming request; this might be something for another...