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 7050bf2 commit acd3833Copy full SHA for acd3833
tests/TestCase.php
@@ -42,7 +42,7 @@ public function setUp(): void
42
$this->assertEquals(0, \DB::table('taggables')->count());
43
44
\Event::listen('eloquent.*', function ($eventName, array $data) {
45
- if (0 !== strpos($eventName, 'eloquent.retrieved')) {
+ if (0 !== strpos($eventName, 'eloquent.retrieved') && 0 !== strpos($eventName, 'eloquent.booting') && 0 !== strpos($eventName, 'eloquent.booted')) {
46
self::$events[] = array_merge([$eventName], $data);
47
}
48
});
0 commit comments