Exemplo n.º 1
0
 /**
  * @param Cart $cart
  */
 public function __construct(Cart $cart)
 {
     $this->NavigationItems = NavigationItem::active()->get();
     $this->Cart = $cart;
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(Request $request)
 {
     $NavigationItem = NavigationItem::create($request->all());
     $NavigationItem->save();
 }
 public function deactivate($id)
 {
     $NavigationItem = NavigationItem::find($id);
     $NavigationItem->active = 0;
     $NavigationItem->save();
     return Redirect::route("admin.navigation.index");
 }