/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { if ($result = check_auth_to('JSLB_EDIT')) { return $result; } $data['authGroupList'] = AuthGroup::all(); $data['roleInfo'] = Role::find($id); return view('admin.role.edit', $data); }