C:\xampp\htdocs\laravel-exam3>heroku run composer install --dev
Running composer install --dev on laraexam... up, run.4477
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
must be a namespace issue then, or your autoloader is wrong/etc.. I'm not a fan of heroku for this reason, too difficult to really understand what's going on on their end.
I too had the same problem. Even after you run composer install (or composer update) some packages are not installed(which includes fzaninotto/faker ) . You can see this if you run the command "heroku run 'cd vendor && ls -la'".
The solution is:
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.