/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $singer = \App\Models\Singer::find($id); return view('singers.edit', compact('singer')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $song = \App\Models\Song::find($id); $singers = \App\Models\Singer::all(); return view('songs.edit', compact('song', 'singers')); }