Showing 10 of 2,055 results.

Laravel String Helper Function: equals

The equals method will determine if two strings are the same. The equals method implements a constant-time algorithm, meaning that the time it takes the method to complete does not necessarily increase as the size of the two inputs ( $knownString...

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...

Example Use | Laravel 5: String Translation Public API

In the following example, we will extend the MessageSelector to return always return the same string when resolving a translation line using the choice and transChoice methods: 1 <?php 2 3 use Illuminate \ Translation \ MessageSelector ; 4 5 class...