We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 325f37e + 94e868e commit 7dc7557Copy full SHA for 7dc7557
src/Models/TeamworkTeam.php
@@ -56,7 +56,7 @@ protected static function boot()
56
static::creating(function ($model) {
57
$model->uuid = (string)Uuid::uuid1();
58
$model->slug = Str::slug($model->name);
59
- $model->owner_id = auth()->user()->getKey();
+ $model->owner_id = $model->owner_id ?? auth()->user()->getKey();
60
});
61
62
static::updating(function ($model) {
0 commit comments