Fixes tests

This commit is contained in:
David Bomba 2020-06-30 13:50:46 +10:00
parent 4bcab0d0d6
commit e5245c22d4

View File

@ -337,7 +337,7 @@ class BaseRepository
public function newEntityEvent($model)
{
$className = $this->getEventClass($entity, 'Created');
$className = $this->getEventClass($model, 'Created');
if (class_exists($className)) {
event(new $className($model, $model->company));