php artisan key:generate
Change Laravel App_Key
Hi,
I'm trying to create two apps across two servers and so I need to share the APP_KEY.
The problem is I'm mid development on both apps, and I changed the APP_KEY on one to match the other, and now I'm getting a Token Mismatch Error.
I've cleared all sessions from the DB, and clear my browsers history, re-migrated the DB and removed all remember_tokens.
How do you go about changing the APP_KEY?
Thanks,
Ed
So I found the problem.....
I read somewhere that in order to share cookies across sub-domains, you must prefix the cookie domain with *. I.e. *.app.com.
This was in fact invalidating the cookies, which meant they weren't being set in the browser.
I'm now desperately trying to find this thread to warn others!
Thanks for you time.
Please or to participate in this conversation.