... any reason you're starting a new thread instead of continuing this one from yesterday? https://laracasts.com/discuss/channels/laravel/how-to-seed-database-after-deploying-the-laravel-app-on-heroku
How to seed database after deploying the Laravel app on production Heroku?
I successfully deployed a laravel in production in Heroku but when I run 'heroku run php artisan db:seed' I got this error:
[Symfony\Component\Debug\Exception\FatalThrowableError] Fatal error: Class 'Faker\Factory' not found
Does any one of you get the error deploying on heroku?
I use cleardb add ons.
When I run 'heroku run php artisan migrate' in production it all works fine only the heroku run php artisan db:seed' has error. It all works on development side, but in production I got the error.
It seems like in the Faker library id not loaded in the DatabaseSeeder class? Is there a problem on my composer not loading the Faker library? or permission on vendor folder?
I will appreciate any help. Thanks.
Please or to participate in this conversation.