From 278b078937a624c2a0c1a2f08f7cce8b30eecc30 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 6 May 2020 22:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E4=BA=BAID?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/permissions/controller/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catch/permissions/controller/User.php b/catch/permissions/controller/User.php index 5300ffc..484d250 100644 --- a/catch/permissions/controller/User.php +++ b/catch/permissions/controller/User.php @@ -83,7 +83,7 @@ class User extends CatchController */ public function save(CreateRequest $request) { - $this->user->storeBy($request->post()); + $this->user->storeBy($request->param()); $this->user->attach($request->param('roles')); @@ -121,7 +121,7 @@ class User extends CatchController */ public function update($id, UpdateRequest $request) { - $this->user->updateBy($id, $request->post()); + $this->user->updateBy($id, $request->param()); $user = $this->user->findBy($id);