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
Database Driver & Version: Ver 15.1 Distrib 10.5.4-MariaDB, for Win64 (AMD64)
Description:
When user registers through the form everything works perfectly.
When I'm trying to log in with a user created with:
User::factory(50)->create();
I'm getting an ErrorException Trying to get property 'id' of non-object on currentTeam() function from ...\vendor\laravel\jetstream\src\HasTeams.php:28
Steps To Reproduce:
Create a fresh laravel instalation with the jetstream package (livewire stack)
Change the the primary key of the user from 'id' to 'uuid'
Update all the relevant foreign fields to match the change.
Create a new user through form registration -> This works normally.
Create a new user through model factory / seeder -> This will produce the error.