Laravel 5.4 (1/1) TokenMismatchException

0

Locally all forms work, but when I put them online you are giving erro as if you did not have _token assigned to forms .

APP_NAME=MonkStudio
APP_ENV=production
APP_KEY=base64:KV/4jmhU507Kse+PSbsBJPUwKd1vG2bFsLmN0lDCQoQ=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://monkstudio.net

.
.
.

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

The files are being written, how to solve?

Link : link

    
asked by anonymous 09.04.2018 / 04:43

1 answer

1

Your application is not creating session / cookie in the browser.

Thispreventsyoufromvalidatingthetoken.Icannotexplaintheexactreasonbutithashappenedtome.

Tosolvethis,youneedtopointthecorrectURLwithinthe.envoftheapplicationontheserver.

AlsocheckthetypeofSESSIONthatisassignedin.env,ifitisfile,youmusthavewritepermissionsonthestorage/sessionsdirectory.Ifitisdatabaseyouneedtohavesessionmigrations.

Readabout this here

    
09.04.2018 / 15:33