Showing 10 of 2,133 results.

Laravel 5: Generating HTTPS URLs With secure_url

The secure_url helper function can be used to generate secure, fully qualified URLs to a given $path . You can also supply additional data that will be added as a query string by supplying an argument for the $parameters parameter. The secure_url...

Registering Third-party Metadata Providers | Overview

The metadata manager also supports the concept of "metadata providers." These providers provide a simple way for external code to register multiple meta tags with Site Essential's metadata manager. Metadata providers are added by using the...

Laravel Collection Public API: count

count The count method is a straightforward method and simply returns the total number of items in the collection. The count method returns an integer. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create a new collection instance. 6...

Wrapping our Nested List | Responses and Replies

…at we had to specify the wrapper element again ( ul ): 1 {{ if comments }} 2 < ul class = " nested-list " > {{ * recursive comments * }} </ ul > 3 {{ /if }} This provides you the opportunity to wrap the replies in a custom wrapper element, add...

Display Comment Counts

The {{ meerkat:count }} Antlers tag can be used to display the total number of comments for the current page. By default, the count tag will not consider comments that have not been approved, are marked as spam, or have been soft-deleted. The...

Rendering "Normal" Search Results | Search Results Tag

To render a more traditional Statamic search results page, where each result appears as its own item, we can set the group_results parameter to false , and only consider the first item in each result's items array: 1 {{ documentation : results...

Search Tag Parameters | Search Results Tag

The documentation:results tag shares many parameters with Statamic's search:results tag. The following parameters can be used when working with the documentation:results search tag: Parameter Data Type Description index string The search index to...

Laravel String Helper Function: ends_with

…e, it returns false . The signature for the endsWith helper method is: endsWith($haystack, $needles) 1 use Illuminate \ Support \ Str ; 2 3 // true 4 Str :: endsWith ( ' A simple sentence. ' , ' . ' ) ; 5 6 // false 7 Str :: endsWith ( ' No...

Filter Search