Heroku and Laravel Passport

后端 未结 4 1593
执念已碎
执念已碎 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 06:56

    the solution is here : https://github.com/laravel/passport/issues/267

    Add these few lines into your composer.json under the "scripts" property, then commit et deploy into heroku.

    "post-install-cmd": [ 
            "php artisan clear-compiled",
            "chmod -R 777 storage", 
            "php artisan passport:keys"
        ]
    

    BUT : after that you have to delete the keys from the table "oauth-clients" , then regenerate these keys with :

    php artisan passport:install

    and it worked for me.

    Hope it will help.

    Dominique

提交回复
热议问题