fzaninotto / Faker

Faker is a PHP library that generates fake data for you
MIT License
26.8k stars 3.57k forks source link

In DatabaseServiceProvider.php line 88: Class 'Faker\Factory' not found #2067

Closed stephenjason89 closed 3 years ago

stephenjason89 commented 3 years ago

running composer install --no-dev version 1.9.1

Results to this error:

In DatabaseServiceProvider.php line 88:

  Class 'Faker\Factory' not found

I already delete all my migrations/seeders/factory and still having this error

raphaeldealmeida commented 3 years ago

This is a Laravel question. Faker is a required-dev dependence

https://github.com/laravel/laravel/blob/master/composer.json#L20

stephenjason89 commented 3 years ago

Thank you for the reply. i have actually resolved it by deleting the module and recreating it. For some unknown reason i may have npm install or composer install on the module dir that caused the error.