I allow the user to delete items from paginated content. After deleting the item the user requests i redirect them back. I however have noticed this is buggy because if the page contains only one item and the user deletes it they are redirected to the same page which now has no records.I have 11 items on each page and use the default Laravel pagination. How can i enforce a mechanism that redirects user to the previous page if the current page is blank after deletion of the last or only item?