How to rotate/change app_key?

Running v5.3.79
If I try to do php artisan ninja:update-key, I get Command "ninja:update-key" is not defined. If I do php artisan key:generate, it does change the app_key but then I can’t login (I get a 500 error text at the login screen, but it’s just text, the login screen seems fine). I ran php artisan optimize but that didn’t fix it. I am running 2FA just if that changes things. If I change back to my old app_key, I can successfully login again. What step am I missing to successfully change the app_key?


@david any thoughts?

Note: in v4 there’s a console command for this, I don’t believe it’s been ported to v5 yet.


Correct we don’t support this yet.