We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465cbb4 commit 923e862Copy full SHA for 923e862
src/Concerns/InteractsWithModelFactory.php
@@ -13,6 +13,7 @@
13
namespace Hyperf\Testing\Concerns;
14
15
use Faker\Factory as FakerFactory;
16
+use Hyperf\Database\Model\Factory;
17
use Hyperf\Testing\ModelFactory;
18
19
trait InteractsWithModelFactory
@@ -26,7 +27,7 @@ trait InteractsWithModelFactory
26
27
28
protected function setUpInteractsWithModelFactory()
29
{
- if (! class_exists(FakerFactory::class)) {
30
+ if (! class_exists(Factory::class) || ! class_exists(FakerFactory::class)) {
31
return;
32
}
33
0 commit comments