protected function savePoints() { parent::savePoints(); $starV = \App\StarsValue::where('star', $this->data['star'])->first(); $this->userInstance->points()->increment('stars', 1); $value = $starV->value * $starV->modifier; if ($value > 0) { $this->userInstance->points()->increment('points', $value); } }