Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117757758
UserSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
902 B
Referenced Files
None
Subscribers
None
UserSetting.php
View Options
<?php
namespace
App
;
use
App\Traits\BelongsToUserTrait
;
use
Illuminate\Database\Eloquent\Model
;
/**
* A collection of settings for a User.
*
* @property int $id
* @property int $user_id
* @property string $key
* @property string $value
*/
class
UserSetting
extends
Model
{
use
BelongsToUserTrait
;
/** @var array<string, string> The attributes that should be cast */
protected
$casts
=
[
'created_at'
=>
'datetime:Y-m-d H:i:s'
,
'updated_at'
=>
'datetime:Y-m-d H:i:s'
,
];
/** @var list<string> The attributes that are mass assignable */
protected
$fillable
=
[
'user_id'
,
'key'
,
'value'
];
/**
* Check if the setting is used in any storage backend.
*/
public
function
isBackendSetting
():
bool
{
return
\config
(
'app.with_ldap'
)
&&
in_array
(
$this
->
key
,
[
'first_name'
,
'last_name'
,
'organization'
]);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 9:25 AM (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
33/10/8bcb8ddcd4b2e3ba7be2b3f953ba
Default Alt Text
UserSetting.php (902 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline