Showing 10 of 1,322 results.

What Are They? | Lambdas And Closures

…unction parameters, just like with normal functions: 1 <?php 2 3 // A simple 'hello' function 4 $ hello = function ( $ name ) { 5 return ' Hello ' . $ name ; 6 } ; 7 8 echo $ hello ( ' Jill ' ) ; The code above would output something like this...

Laravel Collection Public API: first

…null) The first method is used to get the first item in a collection, or to get the first item in a collection that matches a set of criteria. A $callback can be supplied to return the first item in the collection that matches a given truth test....

Menu Item Icons | Navigation Menus

An icon may be associated with any navigation menu item by selecting a value for the "Menu Icon" field when editing a menu item within the Statamic Control Panel.

Resolving Variable Values | Introduction & Installation

…) ; which produces the following output: 1 name = " author " content = " John Doe " content_two = " $ author " content_three = " $ $ author " Attribute Renderer does not support more complicated variable paths, such as nested properties, or array...

Laravel MessageBag Public API: getFormat

…the format. 18 $ messageBag -> setFormat ( ) ; 19 20 // :message 21 $ format = $ messageBag -> getFormat ( ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

Adventures in Blade | Laracon, Blade and What's Next

…experimented a lot with Blade. Most of those experiments have remained private little adventures, but some have become public. The most popular recently being: Dagger, : An alternative component framework for Blade, focusing on performance and...