Showing 10 of 1,085 results.

Image Asset | Open Graph Metadata

The imageAsset helper method accepts an Asset instance and generates the following meta tags based on the asset's information: 1 <meta name="image" property="og:image" content="..."> 2 <meta property="og:image:width" content="..."> 3 <meta...

Antlers: Building Beautiful Websites with Statamic

Antlers: Building Beautiful Websites with Statamic is the essential resource for Statamic developers aiming to master Antlers. This powerful templating engine powers Statamic CMS. Written clearly and concisely, this guide walks you through core...

Laravel Array Helper Function: array_last

last($array, callable $callback = null, $default = null) The last helper method is the logical opposite of the first (discussed in the article Laravel Array Helper Function: array_first method. The difference is that the last function will return...

The Search Report

…searches on your site, you can view them within Statamic's Control Panel by going to "Utilities > Search Report". The search report provides a number of fields to help you make sense of your user's searches: Index: The Statamic search index used...

Mutable Function | Laravel Array Helper Function: array_set

This function affects the original $array . Which would produce a familiar looking array: 1 array( 1 ) { 2 [ " person " ] array(2) { 3 [ " first_name " ] " Jane " 4 [ " last_name " ] " Doe " 5 } 6 } Overwriting the value of first_name is also easy...

Laravel URL Helper Function: route

route($name, $parameters = [], $absolute = true, $route = null) The route helper function can be used to generate URLs to a given named route. The route function defines four parameters, but only three are used internally ( $name , $parameters and...

Filter Search