Installing Passport worked for the local environment of Laravel Vapor. But after deploying it to production an error occured:
After searching the error message it seems that we need to run php artisan passport:install
like mentioned here.
How can we do that with Laravel Vapor? Is there a way to get access to the server via ssh
?
Vapor doesn't have a permanent filesystem; each HTTP request hits a new Lambda instance.
The docs have some info on deploying Passport keys. On Vapor, your best bet is going to be using Vapor's "secrets" system to put them into the environment, then doing:
You'll want to name your secrets
PASSPORT_PRIVATE_KEY
andPASSPORT_PUBLIC_KEY
in Vapor.