Showing 10 of 1,322 results.

Laravel 5: Accessing Session Input Data With old

…assumes that an input item with the key name exits: 1 // Retrieve the old name. 2 $ userName = old ( ' name ' ) ; 3 4 // Retrieve the old name with 5 // a default value. 6 $ userName = old ( ' name ' , ' John Doe ' ) ; The examples below...

Antlers Tags

Site Essentials for Statamic provides different tags, each designed to help simplify some aspect of site development. Some tags are a bit obscure, but some are generally applicable to many types of projects. se_capture Tag, The se_capture tag can...

Laravel String Pluralization

…sed by Symfony's pluralization system will work with Laravel. Pluralization translation lines follow the ISO 31-11 standard for numeric intervals, such as specific numbers and ranges. The syntax also allows for "tags", which behave like comments...

Array Sort Considerations | Laravel 5: Sorting Arrays With sort

…// Create a new collection, using the 'Collect' helper. 2 $ collection = collect ( [ ' second ' , ' first ' , ' third ' ] ) ; 3 $ sorted = array_sort ( $ collection -> all ( ) ) ; Instead, it is preferable to just use the collection's sortBy...

Swapping Antlers Layouts and Passing Data to Layouts

In this article, we will work through 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...

Configuring the Blueprint

The Meerkat blueprint is created automatically for you when Meerkat is installed, and the site reloaded or accessed for the first time. This blueprint can be found in the following directory (from the root of your Statamic site): 1 resources/ 2...

Filter Search