src/Commands/FileLoaderCommand.php
public function loadFile($file, $locale, $namespace = '*', $group = '')
    {
        $group        = $group . basename($file, '.php');
        $translations = $this->files->getRequire($file);
        $this->translationRepository->loadArray($translations, $locale, $group, $namespace, $locale == $this->defaultLocale);
    }
public function loadFile($file, $locale, $namespace = '*', $group = '')
    {
        $group        = $group . basename($file, '.php');
        $translations = $this->files->getRequire($file);
        $this->translationRepository->loadArray($translations, $locale, $group, $namespace, $locale == $this->defaultLocale);
    }
public function loadFile ( $ file , $ locale , $ namespace = '*' , $ group = '' ) { $ group = $ group . basename ( $ file , '.php' ) ; $ translations = $ this -> files -> getRequire ( $ file ) ; $ this -> translationRepository -> loadArray ( $ translations , $ locale , $ group , $ namespace , $ locale == $ this -> defaultLocale ) ; }
Loads the given file into the database

@param  string  $path           Full path to the localization file. For example: /path/to/laravel/resources/lang/en/auth.php
@param  string  $locale
@param  string  $namespace
@param  string  $group          Relative from the locale directory's root. For example subdirectory/subdir2/
@return void
Loads the given file into the database