/** * Remove the specified resource from storage. * * @param int $id * @return Response * @internal param Request $request */ public function destroy($id) { $wire_type = WireType::findOrFail($id); $wire_type->delete(); $message = trans('messages.wire_type_successfully_removed'); Flash::warning($message); return redirect()->route('admin.wire_types.index'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $wire = Wire::findOrFail($id); $types = WireType::all()->lists('reference', 'id'); return view('admin.wires.edit')->with('wire', $wire)->with('types', $types)->with('title', trans('titles.editing_wire')); }