Page MenuHomePhorge

SharedFolderAlias.php
No OneTemporary

Authored By
Unknown
Size
851 B
Referenced Files
None
Subscribers
None

SharedFolderAlias.php

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* An email address alias for a SharedFolder.
*
* @property string $alias
* @property int $id
* @property int $shared_folder_id
*/
class SharedFolderAlias extends Model
{
protected $fillable = [
'shared_folder_id', 'alias'
];
/**
* Ensure the email address is appropriately cased.
*
* @param string $alias Email address
*/
public function setAliasAttribute(string $alias)
{
$this->attributes['alias'] = \App\Utils::emailToLower($alias);
}
/**
* The shared folder to which this alias belongs.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function sharedFolder()
{
return $this->belongsTo(SharedFolder::class, 'shared_folder_id', 'id');
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:58 PM (6 d, 10 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5d/e5/08c099e4b4927cc30a886270176b
Default Alt Text
SharedFolderAlias.php (851 B)

Event Timeline