public function modelHasLanguage($model, $key)
    {
        if ($this->isLanguage($key)) {
            return true;
        }

        if ($model->translations->get($key)) {
            return true;
        }

        return $this->model->language === $key;
    }
public function modelHasLanguage($model, $key)
    {
        if ($this->isLanguage($key)) {
            return true;
        }

        if ($model->translations->get($key)) {
            return true;
        }

        return $this->model->language === $key;
    }
public function modelHasLanguage ( $ model , $ key ) { if ( $ this -> isLanguage ( $ key ) ) { return true ; } if ( $ model -> translations -> get ( $ key ) ) { return true ; } return $ this -> model -> language === $ key ; }
Does the Model have the language created.

@param  Model $model
@param  string $key

@return boolean
Does the Model have the language created .