/** * This method controls what happens when you move to /dashboard/create in your app. * Creates a new product. This is usually the target of form submit actions. * POST request. */ public function create() { InventoryModel::createProduct(Request::post('product_name'), Request::post('product_set'), Request::post('product_condition'), Request::post('product_price'), Request::post('product_qty'), Request::post('product_foil')); Redirect::to('inventory'); }