TeamΒΆ

Important

Only applies if you are using the teams feature.

Create a Team model inside app/Team.php using the following example:

<?php

namespace App;

use Laratrust\LaratrustTeam;

class Team extends LaratrustTeam
{
}

The Team model has three main attributes:

  • name β€” Unique name for the Team, used for looking up team information in the application layer. For example: “my-team”, “my-company”.
  • display_name β€” Human readable name for the Team. Not necessarily unique and optional. For example: “My Team”, “My Company”.
  • description β€” A more detailed explanation of what the Team does. Also, optional.

Both display_name and description are optional; their fields are nullable in the database.