validate($request, [ 'appid' => 'required', 'openid' => 'required', 'form_id' => 'required', ]); if (!in_array($request->form_id, ['the formId is a mock one', ''])) { FormIdModel::create($request->all()); } return response([ 'code' => 200, 'message' => 'OK', ]); } }