11 months ago

Running Laravel Passport Install on production server

Posted 11 months ago by johnnoblestone

Is there a recommended way of getting php artisan passport:install to run automatically when somebody installs my project and when it is deployed on production? I have thought about putting it in the composer.json scripts section or as a migration running an artisan call.

The issue is I only want it to run once, which works as a migration, but I don't feel like this is really a function of migrations, but then if I put is in composer.json it seems to be run on production every time the code is deployed. Any tips on this?

Please sign in or create an account to participate in this conversation.