// +---------------------------------------------------------------------- namespace app\api\validate\user; use think\Validate; class StoreServiceFeedbackValidate extends Validate { protected $regex = ['phone' => '/^1[3456789]\d{9}$/']; protected $rule = [ 'phone' => 'require|regex:phone', 'rela_name' => 'require', 'content' => 'require', ]; protected $message = [ 'phone.require' => '410157', 'phone.regex' => '410158', 'content.require' => '410163', 'rela_name.require' => '410155', ]; }