Search

Showing 7 of 1,697 result(s)

/blog/2018/02/20/laravel-5-string-translation-public-api#content-example-use-10

In the following example, we will change the translator's default locale to es :

/blog/2018/02/20/laravel-5-string-translation-public-api#content-getting-the-application-locale-with-locale

The locale method is an alias of the getLocale and share the same signatures and behavior. They can be used interchangeably.

/blog/2018/02/20/laravel-5-string-translation-public-api#content-example-use-12

In the following example, we will use the setFallback method to change the current fallback locale to it :

/blog/2018/04/11/laravel-5-adding-or-setting-new-array-element-values-with-set#content-global-arrayset-helper-function

The array_set function is a shortcut to calling Arr::set . This function is declared in the global namespace.