Skip to content

Commit 66aeb54

Browse files
Update LaravelMicroscopeServiceProvider.php
1 parent 7ba7bbe commit 66aeb54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/LaravelMicroscopeServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ public function register()
8787
app()->singleton(ErrorPrinter::class);
8888
// also we should spy the factory paths.
8989
$this->spyRouter();
90-
$this->spyFactory();
90+
if (class_exists('Illuminate\Database\Eloquent\Factory')) {
91+
$this->spyFactory();
92+
}
9193

9294
// we need to start spying before the boot process starts.
9395

0 commit comments

Comments
 (0)