Heroku and Laravel Passport

后端 未结 4 1609
执念已碎
执念已碎 2021-01-03 06:09

I try to install my app on heroku. This app is a php-laravel app with the \"passport\" for the authentication. All is running fine in my local machine (mac os).

Whe

4条回答
  •  不知归路
    2021-01-03 07:04

    Laravel Passport has a configuration that allows to set public and private keys as environment variables.

    You can run php artisan vendor:publish --tag=passport-config on your local machine and commit the change.

    Then set PASSPORT_PRIVATE_KEY and PASSPORT_PUBLIC_KEY on Heroku config.

    Found from this blog

提交回复
热议问题