在没有发布数据的帖子请求后返回查看

I have a form which after it submits on a different view and then returns to another view

using return view("my-view); after processing my form data.

But the problem is, this still maintains the post data therefore on pressing F5 or refresh form tries to resubmit again.

I know if I redirect to a URL this won't be a problem.

The issue is I don't want to redirect because I want to maintain the same URL.

Please let me know if there is a workaround

Thus if I can return to view and kill the post data or redirect and maintain the same URL.

Thank you.