Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117882608
Entitlement.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
Entitlement.php
View Options
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
/**
* The eloquent definition of an Entitlement.
*
* Owned by a {@link \App\User}, billed to a {@link \App\Wallet}.
*/
class
Entitlement
extends
Model
{
/**
* This table does not use auto-increment.
*
* @var boolean
*/
public
$incrementing
=
false
;
/**
* The key type is actually a string.
*
* @var string
*/
protected
$keyType
=
'string'
;
/**
* The fillable columns for this Entitlement
*
* @var array
*/
protected
$fillable
=
[
'sku_id'
,
'owner_id'
,
'wallet_id'
,
'entitleable_id'
,
'entitleable_type'
,
'description'
];
/**
* Principally entitleable objects such as 'Domain' or 'Mailbox'.
*
* @return mixed
*/
public
function
entitleable
()
{
return
$this
->
morphTo
();
}
/**
* The SKU concerned.
*
* @return Sku
*/
public
function
sku
()
{
return
$this
->
belongsTo
(
'App
\S
ku'
);
}
/**
* The owner of this entitlement.
*
* @return User
*/
public
function
owner
()
{
return
$this
->
belongsTo
(
'App
\U
ser'
,
'owner_id'
,
'id'
);
}
/**
* The wallet this entitlement is being billed to
*
* @return Wallet
*/
public
function
wallet
()
{
return
$this
->
belongsTo
(
'App
\W
allet'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Apr 6, 12:38 AM (6 d, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/d0/869cc008a81adec0bae31e72c5ba
Default Alt Text
Entitlement.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline