Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117750407
SharedFolderAlias.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
959 B
Referenced Files
None
Subscribers
None
SharedFolderAlias.php
View Options
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Relations\BelongsTo
;
/**
* An email address alias for a SharedFolder.
*
* @property string $alias
* @property int $id
* @property int $shared_folder_id
*/
class
SharedFolderAlias
extends
Model
{
/** @var list<string> The attributes that are mass assignable */
protected
$fillable
=
[
'alias'
,
'shared_folder_id'
,
];
/**
* Ensure the email address is appropriately cased.
*
* @param string $alias Email address
*/
public
function
setAliasAttribute
(
string
$alias
)
{
$this
->
attributes
[
'alias'
]
=
Utils
::
emailToLower
(
$alias
);
}
/**
* The shared folder to which this alias belongs.
*
* @return BelongsTo<SharedFolder, $this>
*/
public
function
sharedFolder
()
{
return
$this
->
belongsTo
(
SharedFolder
::
class
,
'shared_folder_id'
,
'id'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 2:19 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18740787
Default Alt Text
SharedFolderAlias.php (959 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline