app/Http/Requests/home/UsersRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'phone' => 'required|regex:/^1[234567890]\d{9}$/',
        ];
    }
public function rules ( ) { return [ 'phone' => 'required|regex:/^1[234567890]\d{9}$/' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//定义验证规则