$users * @property Carbon $created_at * @property Carbon $deleted_at */ class Role extends Model { use AuthorizationRoleTrait, HasFactory; public const DEFAULT_USER_ROLE = 'User'; public const DEFAULT_ADMIN_ROLE = 'Admin'; protected $table = 'roles'; protected $casts = [ 'removable' => 'boolean', ]; protected $fillable = ['name', 'display_name', 'description']; public function users(): HasMany { return $this->hasMany(User::class, 'role_id'); } /** * Create a new factory instance for the model. */ protected static function newFactory(): Factory { return new RoleFactory; } }