Example #1
0
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['keywords' => 'max:150', 'status' => 'in:' . implode(',', UserStatus::getConstants()), 'role' => 'exists:roles,id'];
 }