Changeset View
Changeset View
Standalone View
Standalone View
src/app/SharedFolder.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | class SharedFolder extends Model | ||||
public const STATUS_IMAP_READY = 1 << 8; | public const STATUS_IMAP_READY = 1 << 8; | ||||
/** @const array Supported folder type labels */ | /** @const array Supported folder type labels */ | ||||
public const SUPPORTED_TYPES = ['mail', 'event', 'contact', 'task', 'note', 'file']; | public const SUPPORTED_TYPES = ['mail', 'event', 'contact', 'task', 'note', 'file']; | ||||
/** @const string A template for the email attribute on a folder creation */ | /** @const string A template for the email attribute on a folder creation */ | ||||
public const EMAIL_TEMPLATE = '{type}-{id}@{domainName}'; | public const EMAIL_TEMPLATE = '{type}-{id}@{domainName}'; | ||||
/** @var array Mass-assignable properties */ | /** @var array<string, string> The attributes that should be cast */ | ||||
protected $casts = [ | |||||
'created_at' => 'datetime:Y-m-d H:i:s', | |||||
'deleted_at' => 'datetime:Y-m-d H:i:s', | |||||
'updated_at' => 'datetime:Y-m-d H:i:s', | |||||
]; | |||||
/** @var array<int, string> The attributes that are mass assignable */ | |||||
protected $fillable = [ | protected $fillable = [ | ||||
'email', | 'email', | ||||
'name', | 'name', | ||||
'status', | 'status', | ||||
'type', | 'type', | ||||
]; | ]; | ||||
/** | /** | ||||
Show All 13 Lines |