when deleting the last record on pagination page , this will make that page be fully empty with no records ... this snippet will allow you to redirect to the main route when deleting the last record on pagination and the page is empty
In this snippet I will teach you the right way of displaying record number in lavael blade with pagination
In this snippet I will teach you how to add get parameters in laravel pagination