# Role

<?php

namespace App;

use Laratrust\Models\Role as RoleModel;

class Role extends RoleModel
{
}

The Role model has three main attributes:

  • name — Unique name for the Role, used for looking up role information in the application layer. For example: "admin", "owner", "employee".
  • display_name — Human readable name for the Role. Not necessarily unique and optional. For example: "User Administrator", "Project Owner", "Widget Co. Employee".
  • description — A more detailed explanation of what the Role does. Also, optional.

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