Showing 10 of 2,044 results.

addNamespace($namespace, $hint) | The Laravel Translator

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\Translation\LoaderInterface implementation, which by...

getFallback() | The Laravel Translator

The getFallback() method is used to return the fallback locale that the translator is currently using. A fallback locale is used when a translation for a different locale cannot be found. 1 <?php 2 3 // Get a `Translator` instance from the...

getRootStructures | Workspaces

Returns the direct workspace structures. This method automatically performs structural analysis. Only structures that are at the root of a document, without any parent node, will be returned. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...

getRootSwitchStatements | Workspaces

Returns all the direct switch statements. This method automatically performs structural analysis. Only @switch statements that appear at the root of a document, without any parent nodes, will be returned. 1 <?php 2 3 use Illuminate \ Support \...

getRootConditions | Workspaces

Returns all the root workspace conditions. This method automatically performs structural analysis. Only structures that appear at the root of the document, without any parent node, will be returned. 1 <?php 2 3 use Illuminate \ Support \...