# Multiple User Models
Laratrust supports attaching roles/permissions to multiple user models.
config/laratrust.php file you will find an
user_models array, it contains the information about the multiple user models and the name of the relationships inside the
Permission models. For example:
'user_models' => [ 'users' => 'App\User', ],
The value of the
key in the
key => value pair defines the name of the relationship inside the
It means that there is only one user model using Laratrust, and the relationship with the
Permission models is going to be called like this:
permission_user tables the
user_type column will be set with the user's fully qualified class name, as the polymorphic relations describe it in Laravel docs.
If you want to use the MorphMap feature just change the
use_morph_map value to
true in Laratrust's configuration file.