Store space in session while logging in after successful registration
MODIFY
app/Http/Controllers/RegisterController.php
app/Http/Controllers/RegisterController.php
@@ -63,6 +63,8 @@ class RegisterController extends Controller {
'failed' => false
]);
+ session(['space' => $user->spaces[0]]);
+
return redirect()
->route('dashboard');
}

Store space in session while logging in after successful registration