Fixes tests
This commit is contained in:
parent
4bcab0d0d6
commit
e5245c22d4
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue