Lang::addNamespace PHP Méthode

addNamespace() public static méthode

Add a new namespace to the loader.
public static addNamespace ( string $namespace, string $hint ) : void
$namespace string
$hint string
Résultat void
        public static function addNamespace($namespace, $hint)
        {
            \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
        }

Usage Example

 public function boot()
 {
     \Lang::addNamespace('core', __DIR__ . '/../Resources/lang');
     $this->registerConfig();
     $this->registerViews();
     $this->listenRoutes();
 }
All Usage Examples Of Lang::addNamespace