Showing 10 of 1,204 results.

Creating Dynamic CSS Class Names with Statamic

In this article, we will look at one way to construct dynamic CSS class names when writing Antlers templates for a Statamic site. This technique will utilize the Antlers Runtime parser and the yield and section features.

Laravel Collection Public API: except

…t($array, $keys) helper function. The following example demonstrates the usage of the except method: 1 <?php 2 3 // Create a new collection. 4 $ collection = collect ( [ 5 ' first_name ' => ' John ' , 6 ' last_name ' => ' Doe ' , 7 ' password '...

Laravel 5: Message Bags

…ions. The following classes extend, implement, or make use of the MessageProvider interface by default: Class Description Illuminate\Contracts\Validation \ValidationException The ValidationException is often thrown when a validation error occurs...

Laravel 5: Get the Current Date With today

…helper function in that it returns a Carbon for the current date, however, the difference is that the today helper function only returns the date component; the time component is set to 00:00:00 . The today function also accepts an optional...

Enabling Database Users in Statamic 3

…had the requirement to switch to the database eloquent driver to store Statamic users. The Storing Users in a Database knowledge base article was great to get the configuration changes done, and the base database tables created. However, after...

se_deferred Tag

…he time. 1 {{ se_deferred }} 2 The code inside this section will be delayed 3 until right before the response is sent. 4 {{ /se_deferred }} Deferred regions will generally be evaluated in the order they were registered, but you should not assume...

Available Variables | Responses and Replies

…ernal ID of the comment. {{ date }} A Carbon date instance representing when the comment was submitted. {{ has_replies }} Indicates whether or not the comment has any replies. {{ is_reply }} Indicates whether or not the current comment is a reply...

Filter Search