/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $type = Type::lists('name', 'id'); return view('backend.pages.menu.catalogue.create', compact('type')); }
/** * Remove the specified type from storage. * * @param int $id * @return Response */ public function destroy($id) { Type::destroy($id); return redirect()->route('admin.menu.type.index')->withFlashSuccess(trans("menu_backend.menu_type_deleting")); }