public function destroy($id) { $tip = Tip::find($id); Tip::destroy($id); return redirect('tip/index'); }
/** * Remove the specified tip from storage. * * Marks the tip as removed from the application (uses soft deletes). * * @Delete("/{id}") * @Response(204) * @param int $id * @return Response */ public function destroy($id) { Tip::destroy($id); return response('', Response::HTTP_NO_CONTENT); }