I want to simplify the process of a user creating a team, and as soon as they register it will create the team with the name from the sign up form.
I was going to an event listener on UserRegistration but not sure what code to put in there.
$test = Spark::call( TeamRepository::class . '@create', [$user, $data] );
This only creates the team, not the team_users too.