Search

Showing 7 of 1,216 result(s)

/blog/2018/02/20/laravel-5-string-translation-public-api#content-loader-load-vs-translator-load

Both the translator and file loader instances expose a load method with similar parameters, however, their usage is different. The loader, by design, is responsible for returning an array of the translation lines for the given $namespace , $group...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-retrieving-the-translation-loader-with-getloader

The getLoader method is used to return the instance of the "Illuminate\Contracts\Translation\Loader" implementation the translator is currently using. By default, this will be an instance of "Illuminate\Translation\FileLoader", which is registered...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-signature-7

The signature of the getLoader method is: public function getLoader();

/blog/2018/02/20/laravel-5-string-translation-public-api#content-adding-translation-namespaces-with-addnamespace

The Translator class exposes the addNamespace method as part of its public API. The addNamespace internally makes a call to the addNamespace method on the current instance of the "Illuminate\Contracts\Translation\Loader" implementation, which by...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-signature-8

The signature of the addNamespace method is: The parameters of this method match the parameters of the loader's addNamespace method.

/blog/2018/02/20/laravel-5-string-translation-public-api#content-adding-json-translation-files-with-addjsonpath

The addJsonPath is used to add a new JSON language file path to the file loader. This method will internally call the addJsonPath on the translator's addJsonPath method. For more examples on how to call the addJsonPath method, refer to the...