From 2a805b67093166bbaae56b1d736db1d0fa00b6ba Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Thu, 9 Jan 2020 08:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/user/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/user/controller/User.php b/catch/user/controller/User.php index a7904ba..5b851ee 100644 --- a/catch/user/controller/User.php +++ b/catch/user/controller/User.php @@ -78,7 +78,7 @@ class User extends CatchController public function save(CreateRequest $request) { $this->user->storeBy($request->post()); - + $this->user->attach($request->param('roles')); return CatchResponse::success('', '添加成功');