Commit 3103a120 authored by yinxiaoling's avatar yinxiaoling

验证手机号码格式

parent 896fdc0c
......@@ -67,7 +67,7 @@ class StrategyTaskController extends Controller
$validator = Validator::make($request->all(), [
'phone' => 'required', //验证手机号格式?
'phone' => 'required|regex:/^1[3-8]{1}[0-9]{9}$/',
'user_sn' => 'required',
'call_time' => 'required',
'name'=>'max:20'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment