當我將驅動程序會話更改爲數據庫時,我遇到問題,當我嘗試登錄時總是令牌匹配錯誤匹配。 我已經做了一些操作,如當會話驅動程序是數據庫時令牌缺失匹配Laravel
php artisan config:clear
php artisan config:cache
php artisankey:generate
和配置也改變/ session.php文件
return [
'driver' => env('SESSION_DRIVER', 'file'),'lifetime' => 120,
'expire_on_close' => false,
'encrypt' => false,'files' =>
'storage_path('framework/sessions'),'connection' => 'mysql',
'table' => 'sessions',
'store' => null,
'lottery' => [2, 100],
'cookie' => 'laravel_session',
'path' => '/',
'domain' => env('SESSION_DOMAIN', null),
'secure' => env('SESSION_SECURE_COOKIE', false);
'http_only' => true,
];
這個錯誤我有
任何在https://stackoverflow.com/questions/34866404/tokenmismatchexception-in-verifycsrftoken-php-line-67能夠幫助嗎? – Scuzzy
@iqbal prabu請檢查此鏈接(https://stackoverflow.com/questions/22154990/token-mismatch-when-changing-session-driver-in-laravel-4)我希望它幫助你 –
沒有希望,我有嘗試過 –