Page MenuHomePhorge

SharedFolderAlias.php
No OneTemporary

Authored By
Unknown
Size
959 B
Referenced Files
None
Subscribers
None

SharedFolderAlias.php

<?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

Mime Type
text/x-php
Expires
Mon, Apr 6, 12:29 AM (1 w, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18740787
Default Alt Text
SharedFolderAlias.php (959 B)

Event Timeline