public function edit($id) { $subtype = Subtype::find($id); return view('pages.subtypes.edit', compact('subtype')); }