public function delete($f3, $params) { $obj = new Color($this->db); echo json_encode($obj->delete($params["ColorID"])); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Palete $palette, Color $color) { // $color = $this->color->find($id); // $palette_id = $color->palette->id; $color->delete(); return Redirect::route($this->namespace . '.index', $palette->id)->with('danger', "Color was deleted!"); }