示例#1
0
 /**
  * @return array
  */
 public function rules()
 {
     return array_merge(parent::rules(), ['title' => 'required|min:3', 'path' => 'required|exists:forums,path']);
 }
 /**
  * @return array
  */
 public function rules()
 {
     return array_merge(parent::rules(), ['title' => 'min:3']);
 }