Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Replace fire function by dispatch #25

Merged
merged 1 commit into from
Mar 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CacheableEloquent.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ protected static function fireCacheFlushEvent($event, $halt = true)
// event set individually instead of catching event for all the models.
$event = "eloquent.{$event}: ".static::class;

$method = $halt ? 'until' : 'fire';
$method = $halt ? 'until' : 'dispatch';

return static::$dispatcher->{$method}($event, static::class);
}
Expand Down