Blog > Laravel >
I had to recently update my version of Laravel 5.2 to Laravel 5.3 along with my php version to 7.1. It was a little bit tricky due to some missing help documentation, but I managed to figure it out. So if you are having the same problems then this should help.
Every Laravel 5.2 developer has at some point seen the above default grey ‘TokenMismatchException error page’, which is usually caused when a protected page (which the user needs to be logged in to view) has not been refreshed for a long time and the users login session has timed-out. So the best option is to make the url redirect instead of showing this error message
So have you been wondering if there is anyway to customise the page or redirect to the default login/home page? Well it’s actually fairly easy to sort with a few changes to some of the default setting and files.