UserDisk
class UserDisk extends Model
Traits
Constants
| TYPES |
Map of type key to type name/description. |
Properties
| protected array | $fillable | The attributes that are mass assignable. |
|
| protected array | $casts | The attributes that should be cast. |
Methods
Return the storage disk config template associated with the disk type,
Return the validation rules to create a disk with a specific type.
Return the validation rules to update a disk with a specific type.
Check whether the disk is about to expire.
Create a new factory instance for the model.
The user who owns the disk.
Get the filesystem disk configuration array of this user disk.
Extend the expiration date of the disk.
Check if the dcache access token is about to expire (within 1 minute) or already expired.
Check if the dcache refresh token is about to expire (within 2 hours).
Refresh the dcache access and refresh tokens.
Details
at line 59
static array
getConfigTemplate(string $type)
Return the storage disk config template associated with the disk type,
at line 71
static array
getStoreValidationRules(string $type)
Return the validation rules to create a disk with a specific type.
at line 83
static array
getUpdateValidationRules(string $type)
Return the validation rules to update a disk with a specific type.
at line 93
bool
isAboutToExpire()
Check whether the disk is about to expire.
at line 103
static protected Factory
newFactory()
Create a new factory instance for the model.
at line 113
BelongsTo
user()
The user who owns the disk.
at line 123
array
getConfig()
Get the filesystem disk configuration array of this user disk.
at line 133
extend()
Extend the expiration date of the disk.
at line 144
bool
isDCacheAccessTokenExpiring()
Check if the dcache access token is about to expire (within 1 minute) or already expired.
at line 164
bool
isDCacheRefreshTokenExpiring()
Check if the dcache refresh token is about to expire (within 2 hours).
at line 184
bool
refreshDCacheToken()
Refresh the dcache access and refresh tokens.