/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($training_slug) { // $training = Training::wheretraining_slug($training_slug)->firstOrFail(); return view('training.edit', compact('training')); }