Laravel Error: Integrity constraint violation: 1062 Duplicate entry

This Error is found when we insert duplicate data which already exist in the database. To overcome from it just make the key_name unique in Validation. See the below code:-

Total Page Visits: 125 - Today Page Visits: 7