/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($slug) { $asegurado = Asegurado::findBySlug($slug); return view('asegurado.edit', compact('asegurado')); }