Showing 10 of 2,133 results.

Ranges | Laravel 5: String Pluralization Syntax

Laravel's translation components allow for a simple way to express ranges of numbers when defining language files; we've seen many of the ways to do this in previous sections. However, we will explore them again in this section.

The Auth & User Filters

The auth and user filters allow you to query comments across a variety of authenticated-user status and user-list scenarios.

Custom Filter Groups | Advanced Filtering

The filter syntax can get quite long if your chaining multiple filters, or be annoying to keep updated if you're using them in many places (and not using Statamic partials). To help with this, you can define a filter group like so: 1 <?php 2 3 use...

Laravel String Helper Function: title

This method will convert the given $value to look like a traditional print title. This method essentially will transform the entire $value to its lower cased equivalent and then uppercase the first character of each word it finds. This method may...

getText | Text Extraction

Returns the original document text between two character offsets. Argument Description $startOffset The start offset. $endOffset The end offset. 1 <?php 2 3 public function getText ( int $ startOffset , 4 int $ endOffset ) : string ; Example Use 1...