Ejemplo n.º 1
0
 /**
  * Show the form for creating a new !resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $group = Mgroup::lists('name', 'id');
     $cata = Catalogue::get();
     $mas = $this->allmaterials();
     return view('backend.pages.menu.dish.create', compact('catalogue', 'group'))->withMaterials($mas)->withCatalogues($cata);
 }
Ejemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Mgroup::destroy($id);
     return redirect()->route('admin.element.mgroup.index')->withFlashSuccess(trans("element_backend.mgroup_deleting"));
 }