久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Laravel 5.5 登錄和注冊頁面說:由于不活動,頁面已

Laravel 5.5 login and register page says:The page has expired due to inactivity.[TokenMismatchException](Laravel 5.5 登錄和注冊頁面說:由于不活動,頁面已過期.[TokenMismatchException]) - IT屋-程序員軟件開發技術分享
本文介紹了Laravel 5.5 登錄和注冊頁面說:由于不活動,頁面已過期.[TokenMismatchException]的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我剛剛使用laravel安裝程序創建了一個laravel 5.5版本的新項目.并運行命令php artisan make:auth".為用戶身份驗證生成視圖和控制器.還有運行php artisan migrate"創建數據庫中需要的表.訪問登錄頁面和注冊頁面時,填寫表單并提交.顯示頁面因不活動而過期.請刷新并再試一次.".但刷新頁面沒有任何幫助.在源碼中看到,是哪里導致了異常:

I just created a new project of laravel version 5.5 with the laravel installer.And run the command "php artisan make:auth".The views and controller are generated for the user authentication.And also run "php artisan migrate" to create tables needed in the database.When visiting the login page and register page,filling the form and submit.It shows "The page has expired due to inactivity. Please refresh and try again.".But refreshing the page does nothing help. Seen in the source code,where causes the exception:

if ($e instanceof ModelNotFoundException) {
        $e = new NotFoundHttpException($e->getMessage(), $e);
    } elseif ($e instanceof AuthorizationException) {
        $e = new AccessDeniedHttpException($e->getMessage());
    } elseif ($e instanceof TokenMismatchException) {
        $e = new HttpException(419, $e->getMessage());
    }

似乎是TokenMismatchException"導致了這個問題.這是什么時候發生的?為什么?我只是創建了這個新項目,沒有做任何其他更改.希望你得到積分.我使用 php 7.1.9(laravel 5.5 需要 php > 7.0.0).并在開發環境中使用:php artisan serve

It seems "TokenMismatchException" causing this problem. When did this happen?And why?I just create this new project and did not do any other changes. Hope you got the points. I use php 7.1.9(laravel 5.5 requires php > 7.0.0).And serve the project in develop environment with:php artisan serve

推薦答案

我在 localhost:8000 (php artisan serve) 上遇到了同樣的問題.也許這是巧合,但請嘗試使用 "clean browser" ,而不是您在以前的開發中使用的.對我來說它奏效了.

I had the same problem on localhost:8000 (php artisan serve). Maybe it's coincidence, but try on "clean browser" , other than you used with previous development. For me it worked.

問題似乎出在同一 url 上使用以前的 Laravel 版本開發的 cookie.

It seems that the problem is with cookies from development with previous Laravel versions, on the same url.

這篇關于Laravel 5.5 登錄和注冊頁面說:由于不活動,頁面已過期.[TokenMismatchException]的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

add new element in laravel collection object(在 Laravel 集合對象中添加新元素)
Creating an edit modal in Laravel 5(在 Laravel 5 中創建編輯模式)
Laravel 5.5 API resources for collections (standalone data)(用于集合的 Laravel 5.5 API 資源(獨立數據))
What is the best practice to create a custom helper function in php Laravel 5?(在 php Laravel 5 中創建自定義輔助函數的最佳實踐是什么?)
No #39;Access-Control-Allow-Origin#39; header - Laravel(沒有“Access-Control-Allow-Origin標頭 - Laravel)
Laravel Passport Route redirects to login page(Laravel Passport Route 重定向到登錄頁面)
主站蜘蛛池模板: 久久国产一区二区 | 成人免费视频7777777 | 精品视频在线一区 | 亚洲日本欧美日韩高观看 | 国产第一页在线观看 | 91av视频在线播放 | 国产欧美一区二区三区久久人妖 | 国产9999精品 | 亚洲日本乱码在线观看 | 99久久成人 | 日韩一区二区av | 免费在线观看成年人视频 | 成人免费小视频 | 久久久久久久一区二区三区 | 在线观看亚洲精品视频 | 久久高清免费视频 | 一区二区av | 日韩av电影院 | 色综合久久久 | 亚洲性人人天天夜夜摸 | 奇米四色在线观看 | 久久99网站 | 国产精品一二三区 | 激情久久av一区av二区av三区 | 免费一区二区三区 | 国产精品成人久久久久a级 久久蜜桃av一区二区天堂 | 久久国产电影 | 国产精品视频一区二区三区, | 99精品九九| 精品国产欧美一区二区 | 国产精品久久视频 | 免费观看日韩精品 | 中文字幕精品视频在线观看 | 久久九九99| 二区三区视频 | 一区二区成人 | 亚洲一区二区欧美 | 中文日韩字幕 | 亚洲国产成人精品女人久久久 | 亚洲欧美一区二区三区在线 | www.久久.com |