commit
b28ec2ace2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue