Overview
Larafast Multi-Tenancy comes with a built-in team creation system. Users are automatically prompted to create their first team when they log in for the first time. No additional setup is required - everything is already configured and ready to use.How It Works
First-Time User Experience
- User registers/logs in - New user creates an account or logs in
- Automatic redirect - If the user has no teams, they’re automatically redirected to the team creation page
- Create team - User fills in team name and description (optional)
- Instant access - Team is created, user becomes the owner, and gains immediate access to the application
Team Creation Form
The team creation page includes:- Team Name (required) - The name of the team/organization
- Description (optional) - A brief description of the team’s purpose
What Happens Automatically
When a user creates a team, the system automatically:- ✅ Creates the team record in the database
- ✅ Sets the user as the team owner
- ✅ Adds the user as a team member
- ✅ Sets this team as the user’s current/active team
- ✅ Redirects to the team dashboard
Team Creation Page
The team creation interface is already built and located at:- File:
app/Filament/App/Pages/Tenancy/RegisterTeam.php - URL: Automatically shown when needed (no direct URL access)
Multiple Teams
Users can create multiple teams:- Click on the current team name in the top navigation
- Select “New team” from the dropdown
- Fill in the team information
- Start using the new team immediately
Customization
Adding Custom Fields
If you want to collect additional information during team creation (e.g., company size, industry), you can edit theRegisterTeam.php file and add more form fields:
Location: app/Filament/App/Pages/Tenancy/RegisterTeam.php
The form uses Filament’s form builder, so you can add any field types (text inputs, selects, file uploads, etc.).
Disabling Team Creation
If you want to control team creation (e.g., only admins can create teams), you can disable the registration page in the panel configuration: Location:app/Providers/Filament/AppPanelProvider.php
Simply remove or comment out this line:
Admin Team Management
Administrators can view and manage all teams in the system through the Admin Panel:- URL:
/admin/teams - Access: Requires admin role
- View all teams across the system
- Create teams for users
- Edit team information
- Delete teams
- Manage team members
Next Steps
- Managing Team Members - Learn how members are managed
- Team Settings - Customize team information

