Search

Showing 7 of 1,697 result(s)

/blog/2017/11/30/laravel-55-string-helper-method-snake#content-example-use

Here are a few examples with the result above the function call in comments:

/blog/2017/11/30/laravel-string-pattern-matching-laravel-55-string-helper-method-is

The is helper method will indicate if the given $value matches the given $pattern . If the $value is the $pattern or if the $value matches the $pattern , the method will return true , otherwise it returns false .

/blog/2017/12/06/laravel-5-string-helpers-pluralization-and-strings#content-example-use

The method takes the $value that should be pluralized, and the $count of the items. If the $count is equal to 1 , the original $value is returned. Assuming the following messages array: We could display the number of messages to the user like so:...

/blog/2017/12/06/laravel-5-string-helpers-uppercasing-the-first-word-of-a-value

The endsWith is used to check if a given $haystack ends with any of the supplied $needles . The $haystack is any value that can be cast into a string, and $needles is any value that can be cast into an array. If the $haystack ends with any of the...

/blog/2018/02/20/laravel-5-string-translation-public-api

The "Illuminate\Translation\Translator" class is the class that most Laravel developers will become the most familiar with when interacting with the Laravel translation services. The Translator class is responsible for handling the interactions...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-loading-translation-text-lines-with-load

The load method internally makes a call to the load method on the current instance of the "Illuminate\Contracts\Translation\Loader" implementation, which by default is an instance of FileLoader . The Translator additionally keeps an internal cache...