Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117747466
Contact.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
Contact.php
View Options
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
/**
* The eloquent definition of a Contact (in the global addressbook).
*
* @property int $id The contact identifier
* @property string $email The contact email address
* @property string $name The contact (display) name
* @property int $user_id The contact owner
*/
class
Contact
extends
Model
{
/** @var array<string, string> The attributes that should be cast */
protected
$casts
=
[
'created_at'
=>
'datetime:Y-m-d H:i:s'
,
];
/** @var list<string> The attributes that are mass assignable */
protected
$fillable
=
[
'email'
,
'name'
,
'user_id'
,
];
/** @var bool Indicates if the model should be timestamped. */
public
$timestamps
=
false
;
/**
* Ensure the email is appropriately cased.
*
* @param string $email Email address
*/
public
function
setEmailAttribute
(
string
$email
):
void
{
$this
->
attributes
[
'email'
]
=
strtolower
(
$email
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 12:22 AM (4 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/df/29b10cd854d764f3163f63f99f18
Default Alt Text
Contact.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline