/** * deletes the company that the user has chosen * @param integer $id company id */ public function delete($id) { // load the bill $bill = \App\Bill::loadBill($id); if (empty($bill)) { return Redirect::route('bill'); } // delete the bill $bill->active = false; $bill->save(); // tell the user Session::flash('success', ['The bill has been deleted successfully']); // redirect return Redirect::route('bill'); }