Lang::addNamespace PHP Method

addNamespace() public static method

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

Usage Example

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