/** * Update the model in the database. * * @param array $attributes * @return bool|int */ public function update(array $attributes = []) { if (!parent::update($attributes)) { throw new Exception('Cannot update role.'); // @codeCoverageIgnore } return $this->fresh(); }