We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ba7bbe commit 66aeb54Copy full SHA for 66aeb54
src/LaravelMicroscopeServiceProvider.php
@@ -87,7 +87,9 @@ public function register()
87
app()->singleton(ErrorPrinter::class);
88
// also we should spy the factory paths.
89
$this->spyRouter();
90
- $this->spyFactory();
+ if (class_exists('Illuminate\Database\Eloquent\Factory')) {
91
+ $this->spyFactory();
92
+ }
93
94
// we need to start spying before the boot process starts.
95
0 commit comments