Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dragonberr's avatar

System: Mac Catalina update, Problem: TokenMismatchException

PROBLEM:

Register page on submit was going to 419 Page Expired

**Note 1: register.blade.php

Already has the token.

@csrf

**Note 2: folder permissions

storage > framework > sessions, etc. all have read & write permission

**Note 3: database

Is working (created an user, etc. with the VerifyCsrf exception)

**Note 4: .env

As a temporary solution, changing "SESSION_DRIVER=file" to "SESSION_DRIVER=cookie"

**Note 5:

From this: https://www.danielord.co.uk/how-to-set-file-permissions-for-laravel-5-on-mac-osx

Tried the sudo chgrp -R _www storage bootstrap/cache, not working

0 likes
3 replies
tisuchi's avatar

@dragonberr Have you checked with the incognito window?

Then you can try with the following commands too-

php artisan cache:clear
php artisan config:clear
TomJay's avatar

@dragonberr did you get a solution for this? I am encountering a similar issue. I should note it's only with safari I get the issue though.

dragonberr's avatar

Haven't gone back to look at it. But the incognito options, etc. don't solve it.

Please or to participate in this conversation.