Showing 10 of 1,085 results.

Translation Strings

The default Tidal template uses translation strings and Statamic's translation tags. The default translation files can be found in the lang/en/ directory. By default, the following language files are available for customization: Filename...

Front-end Templates

There are two ways to add favicon metadata/link tags to your site's front-end templates: the dedicated Antlers tag and the metadata provider.The se_get_favicons Antlers tag returns information about the generated favicons to help construct the...

Example Use | Laravel 5: Retrieving Nested Array Values With pluck

Let's use the following class to describe a person: 1 class Person { 2 3 public $ firstName = ' ' ; 4 5 public $ lastName = ' ' ; 6 7 public function __construct ( $ firstName , $ lastName ) 8 { 9 $ this -> firstName = $ firstName ; 10 $ this ->...

Example Use | Laravel 5 String Helpers: ends_with global helper

1 use Illuminate \ Support \ Str ; 2 3 // true 4 Str :: endsWith ( ' A simple sentence. ' , ' . ' ) ; 5 6 // false 7 Str :: endsWith ( ' No punctuation here ' , ' . ' ) ; 8 9 // false 10 Str :: endsWith ( ' Case matters ' , ' S ' ) ; 11 12 // true...

Laravel String Helper Function: singular

The singular helper method is the logical opposite to the plural method: it will attempt to take a given $value and return the singular form of that word. The internal mechanisms are similar to the plural method. The signature for the singular...

Example Use | Laravel 5.5 String Helper Method: finish

1 use Illuminate \ Support \ Str ; 2 3 // /home/path/ 4 echo Str :: finish ( ' /home/path ' , ' / ' ) ; 5 6 // /home/path/ 7 echo Str :: finish ( ' /home/path/ ' , ' / ' ) ; 8 9 // Sentences should end with a period, or full stop. 10 echo Str ::...

Laravel Translation Helper: trans_choice

The trans_choice helper function is used to pluralize a given $id , translating it for the given $locale . The choice method accepts the $number of some collection of objects that it should use when making pluralization decisions. Like the trans...

Laravel URL Helper Function: secure_asset

secure_asset($path) The secure_asset function will return a URI composed of the application's URI and the given $path . It internally makes a call to the asset (discussed in the Laravel URL Helper Function: asset article) helper function and...

Filter Search