Disable multiple companies #87
                  
                    
                      dominikgeimer
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment
-
| 
         The mechanism for switching companies really has nothing to do with if a user is able to make more than one company. When switching companies, it updates the  Here is an example:     /**
     * Determine whether the user can create models.
     */
    public function create(User $user): bool
    {
        return $user->ownedCompanies()->count() < 1;
    }With this example, a user can't create more than one company.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
is it possible to disable the creation of multiple companies? I just want to have one company after registration.
This seems not to work:
https://github.com/andrewdwallo/filament-companies#switching-the-current-company
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions