Esempio n. 1
0
 /**
  * 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']);
 }
Esempio n. 2
0
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return array_merge(Group::validationRules(), ['amHeadCoach' => 'required']);
 }