Showing 10 of 1,089 results.

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

Example Use | Laravel 5: String Translation Public API

…) ; After the code in the previous example has been executed, the $exists variable would contain the value false . Since this is a common thing to do, Laravel provides an additional method to help make the intent of the method call clearer to...

Example Use | Laravel 5: String Translation Public API

In the following example, we will check if various translation lines have been defined for different locales. The results of the operation will appear above the method call as either true or false . The following examples will assume the following...

Example Use | Laravel 5: String Translation Public API

…age_plural_rules.html gives a sense of the differences between different locales and the rules of pluralization. While words in the English language, by comparison, are fairly simple to convert to their plural forms (see Str::plural in the String...

Laravel Collection Public API: each

…ho $ item ; 23 } ) ; The each method does not explicitly allow the modification of a collection's items, and simply returns a reference to the original collection. However, of the way PHP treats objects as references, it is possible to modify the...

Notes on Blade | Laravel Facades Part Four: Facade Class Reference

…template compilers based on a given key name. By default, the following compilers and engines are available: Compiler/Engine Name Concrete Class Implementation php Illuminate\View\Engines\PhpEngine blade Illuminate\View\Compilers\BladeCompiler...

Filter Search