Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 /**
  * 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"));
 }