Lang::getLoader PHP Method

getLoader() public static method

Get the language line loader implementation.
public static getLoader ( ) : Illuminate\Translation\LoaderInterface
return Illuminate\Translation\LoaderInterface
        public static function getLoader()
        {
            return \Illuminate\Translation\Translator::getLoader();
        }

Usage Example

 public function read($file)
 {
     $fileinfo = pathinfo($file);
     $filename = $fileinfo['filename'];
     $dirinfo = pathinfo($fileinfo['dirname']);
     $locale = $dirinfo['filename'];
     $content = \Lang::getLoader()->load($locale, $filename);
     return $content;
 }
All Usage Examples Of Lang::getLoader