public function delete_slot() { $id = Input::get('id'); $slot = Slot::find($id); $store_id = $slot->store_id; $slot->delete(); $message = "Successfully deleted the a delivery slot"; $type = "danger"; return Redirect::to('/admin/store/' . $store_id . '/slots')->with('type', $type)->with('message', $message); }