Пример #1
0
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['first_name' => 'required|max:255', 'email' => 'required|max:255|unique:user,email,' . getSegmentFromEnd($this) . ',id', 'last_name' => 'max:255', 'arabic_full_name' => 'required|max:255', 'location' => 'max:255', 'phone_number' => 'numeric|digits_between:8,12', 'profession' => 'max:255', 'profession_location' => 'max:255', 'gender' => '', 'bio' => 'max:1000'];
 }
Пример #2
0
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['title' => 'required|max:255', 'permalink' => 'required|unique:event,permalink,' . getSegmentFromEnd($this) . ',id', 'body' => 'required', 'is_published' => 'bool'];
 }