public function edit($id) { $partType = PartType::findorFail($id); return view('backoffice.parttypes.edit', compact('partType')); }