Try to use
{{ csrf_field() }}
Instead of @csrf. If doesn't work, read below:
Check if session has expired due to cache.
php artisan cache:clear
Then, check if permission of storage, vendor is set to 755 and boostrap/cache permission is set to 644. NOTE - Also subdirectories must have the same permissions. There is the code to change it:
chmod -R 755 storage
chmod -R 755 vendor
chmod -R 644 bootstrap/cache
If those fix doesn't work, check if X-CSRF-TOKEN exists in the request header. If not, store the CSRF token in the HTML meta tag.
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.