belongsTo(CentroCusto::class); } public function material() { return $this->belongsTo(Material::class); } public function getHasEstoqueMinimo() { return !is_null($this->estoque_minimo); } public function getHasEstoqueMaximo() { return !is_null($this->estoque_maximo); } }