Showing 7 of 1,216 result(s)
The signature for the load method is:
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...
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...
The signature of the getLoader method is: public function getLoader();
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...
The signature of the addNamespace method is: The parameters of this method match the parameters of the loader's addNamespace method.
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...