validateFields() публичный Метод

验证数据
public validateFields ( mixed $input = null, Closure $validation = null ) : array
$input mixed
$validation Closure
Результат array
Пример #1
0
 public function postSendCode()
 {
     $res = Manager::validateSendable();
     if (!$res['success']) {
         return response()->json($res);
     }
     $res = Manager::validateFields();
     if (!$res['success']) {
         return response()->json($res);
     }
     $res = Manager::requestVerifySms();
     return response()->json($res);
 }