Skip to content

Commit

Permalink
Update HasEvents.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 8, 2024
1 parent 6be83c7 commit 0cbfa47
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,6 @@ public function removeObservableEvents($observables)
);
}

/**
* Returns the event map for the model.
*
* @return array
*/
public function dispatchesEvents()
{
return $this->dispatchesEvents;
}

/**
* Register a model event with the dispatcher.
*
Expand Down Expand Up @@ -396,6 +386,16 @@ public static function flushEventListeners()
}
}

/**
* Get the event map for the model.
*
* @return array
*/
public function dispatchesEvents()
{
return $this->dispatchesEvents;
}

/**
* Get the event dispatcher instance.
*
Expand Down

0 comments on commit 0cbfa47

Please sign in to comment.