/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $data = Defender::findPermissionById($id); if ($data) { return view('forone::' . self::URI . "/edit", compact('data')); } else { return $this->redirectWithError('数据未找到'); } }