Can we redirect to another route with condition in destroy() in laravel?
Scenario: A post has a delete button in all posts list view and the postShow view. So if the post is deleted from the list it will return back()->with('success', 'Some message') but if we delete it from the postShow view…