Closed rhaider-dev closed 4 years ago
I ran into the same issue.
Here are my repro steps:
composer require laravel/jetstream
artisan jetstream:install inertia --teams
Features::teams(),
in config/jetstream.php
The issue is for some reason the install script didn't copy the correct stub over to app/Actions/Fortify/CreateNewUser.php
.
It should have copied the CreateNewUserWithTeams stub overwriting the previous stub, but didn't.
Anyway, TL/DR, you can do the following to fix the issue:
app/Actions/Fortify/CreateNewUser.php
Hope this helps.
It's weird that it does seems like some of the operations like Line 399 in the InstallCommand didn't work, since I had to uncomment the line out myself, but other copy operations did work (besides Line 422.
I'm running PHP 7.4
Create a user using api.
@rhaider-dev please explain how you did this.
@howlowck you need to use the Laravel installer to properly run the install procedure, not just clone the skeleton.
@rhaider-dev I'm thinking you only created a user record and not a personal team for a user. Each user needs a personal team record that's linked to the user.
Also see: https://jetstream.laravel.com/1.x/features/teams.html
By default, every registered user will belong to a "Personal" team.
Description:
Produces error when I login to dahsboard.
Steps To Reproduce:
When I modify user database and give a value in 'current_team_id', the error resolves.