{"id":12388,"date":"2020-03-18T10:13:48","date_gmt":"2020-03-18T10:13:48","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=12388"},"modified":"2021-11-12T06:33:42","modified_gmt":"2021-11-12T06:33:42","slug":"laravel-error-the-page-has-expired-due-to-inactivity-please-refresh-and-try-again","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/laravel-error-the-page-has-expired-due-to-inactivity-please-refresh-and-try-again\/","title":{"rendered":"[SOLVED] Laravel Error: &#8216;The page has expired due to inactivity. Please refresh and try again.&#8217;"},"content":{"rendered":"\n<p>If you&#8217;re getting( &#8216;The page has expired due to inactivity. Please refresh and try again.&#8217;) error in your laravel <strong>project <\/strong>then follow the below steps to remove it.<\/p>\n\n\n\n<p>Step1. Open your terminal\/command prompt and run these commands in your project root.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><code>php artisan cache:clear<\/code><\/li><li><code>php artisan config:clear<\/code><\/li><li><code>php artisan route:clear<\/code><\/li><li><code>php artisan view:clear<\/code>,<\/li><\/ol>\n\n\n\n<p>Also, try to&nbsp;<strong>clear the browser cache<\/strong>&nbsp;along with running these commands.<\/p>\n\n\n\n<p>After that, add the below code in your form method<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/SushantSinghRajput03\/69e854621a34b2110e2fbd28b6f39172.js\"><\/script>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"79\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/03\/Laravel-Error.png\" alt=\"\" class=\"wp-image-12391\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/03\/Laravel-Error.png 573w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/03\/Laravel-Error-300x41.png 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/figure>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_60821\"><iframe loading=\"lazy\"  id=\"_ytid_14939\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_60821\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re getting( &#8216;The page has expired due to inactivity. Please refresh and try again.&#8217;) error in your laravel project then follow the below steps to remove it. Step1. Open&#8230; <\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5201],"tags":[5963,5203,5961,5965,5964],"class_list":["post-12388","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-inactivity","tag-laravel","tag-laravel-error","tag-laravel-project","tag-page-expired"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/12388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=12388"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/12388\/revisions"}],"predecessor-version":[{"id":24891,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/12388\/revisions\/24891"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=12388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=12388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=12388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}