/** * Delete a category based on the ID passed in * @param integer $id The category ID * @return Redirect */ public function getDelete($id) { $this->products->deleteById($id); return Redirect::to('manage/products')->with('success', '<strong>Product Deleted</strong> The product was properly removed.'); }
/** * Main users page. * * @access public * @return View */ public function getIndex() { return View::make('ProductCatalog::dashboard')->with('product_count', $this->products->activeProducts()->count()); }