protected function getLang($name, $default = null, $extras = [])
    {
        $name = $this->getConfig($name, $default);
        $vars = [
            'name' => Lang::get($this->getConfig('name', 'backend::lang.model.name'))
        ];
        $vars = array_merge($vars, $extras);
        return Lang::get($name, $vars);
    }
protected function getLang($name, $default = null, $extras = [])
    {
        $name = $this->getConfig($name, $default);
        $vars = [
            'name' => Lang::get($this->getConfig('name', 'backend::lang.model.name'))
        ];
        $vars = array_merge($vars, $extras);
        return Lang::get($name, $vars);
    }
protected function getLang ( $ name , $ default = null , $ extras = [ ] ) { $ name = $ this -> getConfig ( $ name , $ default ) ; $ vars = [ 'name' => Lang :: get ( $ this -> getConfig ( 'name' , 'backend::lang.model.name' ) ) ] ; $ vars = array_merge ( $ vars , $ extras ) ; return Lang :: get ( $ name , $ vars ) ; }
Parses in some default variables to a language string defined in config.

@param string $name Configuration property containing the language string
@param string $default A default language string to use if the config is not found
@param array $extras Any extra params to include in the language string variables
@return string The translated string.
Parses in some default variables to a language string defined in config .