简体   繁体   中英

Laravel Token Mismatch error while uploading the image

I have purchased a script from codecanyon which is used to upload images. But while I am uploading the image, I got an error:

(1/1) TokenMismatchException
in VerifyCsrfToken.php (line 68)
at VerifyCsrfToken->handle(object(Request), object(Closure))
in Pipeline.php (line 148)
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))

How to fix this issue?

将此代码添加到刀片文件中:

<input type="hidden" name="_token" value="{{ csrf_token() }}">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM