Skip to content

Instantly share code, notes, and snippets.

@degt
Last active July 15, 2020 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save degt/122cffee6718421558e8de665208c16b to your computer and use it in GitHub Desktop.
Save degt/122cffee6718421558e8de665208c16b to your computer and use it in GitHub Desktop.
Running laravel db:seed on Heroku
  1. run "heroku run bash". This creates a one-off-dyno in your heroku app.
  2. run "composer update". now if you check vendor folder you can see fzaninotto/faker package installed.
  3. now run "php artisan db:seed". Your database will be seeded.
Copy link

ghost commented Dec 22, 2017

who conneect whit database heroku in a databasemanager

@RyanAquino
Copy link

I am getting an error Factory\Faker not found even though I already transfer it to "require" depedencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment