Laravel 5.5 - The page has expired due to inactivity - issue

  19818 views   2 years ago Laravel

Today, we are share with you how to resolve "The page has expired due to inactivity" issue in laravel 5.5 error. sometime ago laravel 5.5 release with some new future then we are install laravel 5.5 in my local system and tested. we are seen many time this error "The page has expired due to inactivity" when we are submit form. then i search on google and find solution for it. this problem is not big.

"The page has expired due to inactivity" is error message seen due to two type posibility one is you miss add laravel token into the form and second one is your laravel token exprire

[ADDCODE]

Add csrf token hidden field on Form:

{!! csrf_field() !!}

OR

<input type="hidden" name="_token" value="{{ csrf_token() }}">
	

After add above laravel token into the form then again submit your form and this error resolve.

if you already add laravel token into the form then refresh your page and submit your form again.

We are hope this small tutorial is helpfull...

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on harsukh21@gmail.com

Related Articles