Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Illuminate\Database\Eloquent\Factory does not exist #44

Closed
riasvdv opened this issue Aug 12, 2020 · 1 comment
Closed

Class Illuminate\Database\Eloquent\Factory does not exist #44

riasvdv opened this issue Aug 12, 2020 · 1 comment

Comments

@riasvdv
Copy link

riasvdv commented Aug 12, 2020

  • Testbench Version: 6.0-dev
  • Laravel Version: 8.0-dev
  • PHP Version: 7.4
  • Database Driver & Version: MySQL 5.7

Description:

The WithFactories concern throws this exception:

ReflectionException: Class Illuminate\Database\Eloquent\Factory does not exist

/Users/rias/Code/laravel-mailcoach/vendor/laravel/framework/src/Illuminate/Container/Container.php:809
/Users/rias/Code/laravel-mailcoach/vendor/laravel/framework/src/Illuminate/Container/Container.php:691
/Users/rias/Code/laravel-mailcoach/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:796
/Users/rias/Code/laravel-mailcoach/vendor/laravel/framework/src/Illuminate/Container/Container.php:637
/Users/rias/Code/laravel-mailcoach/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:781
/Users/rias/Code/laravel-mailcoach/vendor/orchestra/testbench-core/src/Concerns/WithFactories.php:31
/Users/rias/Code/laravel-mailcoach/vendor/orchestra/testbench-core/src/Concerns/WithFactories.php:18
/Users/rias/Code/laravel-mailcoach/tests/TestCase.php:30
/Users/rias/Code/laravel-mailcoach/tests/Traits/UsesMailcoachModelsTest.php:19

When testing with Laravel 8 and Testbench 6.0-dev

Seems like this class is moved in Laravel 8: https://github.com/laravel/framework/tree/master/src/Illuminate/Database/Eloquent

@crynobone
Copy link
Member

crynobone commented Aug 12, 2020

@crynobone crynobone pinned this issue Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants