resources/js/router/router.js
/* Save The Scroll Position , Useful When Redirecting Back */
Save The Scroll Position , Useful When Redirecting Back
Save The Scroll Position Useful When Redirecting Back
scrollBehavior(to, from, savedPosition) {
        if (savedPosition) {
            return savedPosition;
        } else {
            return { x: 0, y: 0 };
        }
    }
scrollBehavior ( to , from , savedPosition ) { if ( savedPosition ) { return savedPosition ; } else { return { x : 0 , y : 0 } ; } }
Save The Scroll Position , Useful When Redirecting Back
Save The Scroll Position Useful When Redirecting Back