payload['id']) ? $this->payload['id'] : 0; $this->hidden('id')->value($id); $this->password('password', '密码')->required(); } //点击表单处理 public function handle(array $input) { try { $account = Account::find($input['id']); $account->password = \Hash::make($input['password']);; $account->save(); } catch (\Exception $exception) { return $this->response()->error($exception->getMessage()); } return $this->response()->success('success')->refresh(); } }