You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not always a logged in user that creates a team.
In seeders, tests and factories, I set the $model->owner_id manually and I get an error from this class.
This change prevents that.
```php
$model->owner_id = $model->owner_id ?? auth()->user()->getKey();
```
0 commit comments