Showing 10 of 1,278 results.

Example Use | Laravel 5: String Translation Public API

For the following example, we will see how the results of calling the getLocale method change after we manipulate the currently configured default locale: 1 // Ask the Service Container for a translator instance. 2 $ translator = app ( '...

Example Use | Laravel 5: String Translation Public API

In the following example, we will use the setFallback method to change the current fallback locale to it : 1 <?php 2 // Ask the Service Container for a translator instance. 3 $ translator = app ( ' translator ' ) ; 4 5 // Set the fallback locale...

Example Use | Laravel 5: String Translation Public API

In the following example, we will change the currently configured fallback locale and observe how the fallback locale setting changes as we manipulate it. 1 <?php 2 // Ask the Service Container for a translator instance. 3 $ translator = app ( '...