Closed kiiraklis94 closed 7 years ago
It seems I was doing something wrong in regards to how I used events, which has nothing to do with teamwork. I just put similar code into my RegisterController and now it works fine.
You can close this.
Thanks again for the awesome package.
Glad you've figured it out yourself :)
First of all thanks for this awesome package. So what I'm trying to do is when a user registers, he will automatically be added to a default team (only one for every user).
To do that, I added an event after a user is created, and added it to AppServiceProvider.php. My code is as follows:
This gives me the following error though:
Am I doing something wrong? Thanks in advance for the help.