[Laravel] Laravel5.5 出現The page has expired due to inactivity 怎麼辦?
送出表單時,出現 The page has expired due to inactivity. Please refresh and try again 怎麼辦?
別慌張,因為您的表單沒加入csrf token,加入即可,以下為範例:
在您的form底下,加入這一段
<input type="hidden" name="_token" value="{{ csrf_token() }}">
完成,是不是很簡單就解決了呢!
留言
張貼留言