'required|min:3|max:255', 'team.description' => 'nullable|min:3|max:255', ]; protected $validationAttributes = [ 'team.name' => 'name', 'team.description' => 'description', ]; public function mount() { $this->team = currentTeam(); } public function submit() { $this->validate(); try { $this->team->save(); } catch (\Throwable $e) { return handleError($e, $this); } } }