/** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $isEditingExistingGroup = $this->route('group') > 0; return array_except(Group::validationRules($isEditingExistingGroup), ['program_id', 'owner_id']); }
/** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return array_merge(Group::validationRules(), ['amHeadCoach' => 'required']); }