05 2019 档案

摘要:$data = $request->input(); $rules = [ 'id' => 'required|numeric', 'age' => 'required|numeric|max:150', 'name' => 'required|max:20', //sometimes的用意(不传则 阅读全文
posted @ 2019-05-30 17:08 zhangsima 阅读(469) 评论(0) 推荐(0)
摘要:路由命名 阅读全文
posted @ 2019-05-30 16:59 zhangsima 阅读(577) 评论(0) 推荐(0)
摘要:DB::beginTransaction(); try{ $name = 'abc'; $result1 = Test::create(['name'=>$name]); if (!$result1) { /** * Exception类接收的参数 * $message = "", $code = 阅读全文
posted @ 2019-05-28 17:09 zhangsima 阅读(147) 评论(0) 推荐(0)
摘要:$json_data = array(); $json_data['request_id'] = date('YmdHis').mt_rand(10000,99999); $json_data['card_type'] = 'OUT_MEMBER_CARD'; $json_data['biz_no_ 阅读全文
posted @ 2019-05-26 17:01 zhangsima 阅读(330) 评论(0) 推荐(0)
摘要:if ($postMultipart) { //$headers = array('content-type: multipart/form-data;charset=' . $this->postCharset . ';boundary=' . $this->getMillisecond()); 阅读全文
posted @ 2019-05-24 08:24 zhangsima 阅读(223) 评论(0) 推荐(0)