Skip to content

Commit

Permalink
fixing call uid
Browse files Browse the repository at this point in the history
  • Loading branch information
yaza-putu committed Nov 27, 2021
1 parent cf6cf41 commit 26c67b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/GenUid.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected static function boot()
parent::boot();
static::creating(function ($model) {
if (empty($model->{$model->getKeyName()})) {
$model->{$model->getKeyName()} = $this->uid();
$model->{$model->getKeyName()} = $model->uid();
}
});
}
Expand Down

0 comments on commit 26c67b0

Please sign in to comment.