Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid problems with seeders and factories
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(); ```
- Loading branch information