/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (!$id) { return Redirect::route('colors.index')->with('error', 'Please provide color id'); } $color = Colors::find($id); if (empty($color)) { return Redirect::route('colors.index')->with('error', 'Colour not found'); } Colors::destroy($id); return Redirect::route('colors.index')->with('success', 'Colour deleted successfully'); }