/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { try { $palette = Palette::findOrFail($id); $palette->delete(); return Redirect::route('palettes.index'); } catch (ModelNotFoundException $e) { return $this->respondNotFound(); } catch (Exception $e) { return $this->respondBadRequest($e->getMessage()); } }