2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2015-03-31 11:38:24 +02:00
|
|
|
use Eloquent;
|
2017-01-30 20:40:43 +01:00
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
2015-03-31 11:38:24 +02:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
2017-01-30 20:40:43 +01:00
|
|
|
* Class Subscription.
|
2016-07-03 18:11:58 +02:00
|
|
|
*/
|
2017-11-28 08:57:02 +01:00
|
|
|
class Subscription extends EntityModel
|
2015-03-16 22:45:25 +01:00
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
2015-03-16 22:45:25 +01:00
|
|
|
public $timestamps = true;
|
2017-11-29 11:44:28 +01:00
|
|
|
|
2015-03-31 11:38:24 +02:00
|
|
|
use SoftDeletes;
|
2017-11-28 08:57:02 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
2015-03-31 11:38:24 +02:00
|
|
|
protected $dates = ['deleted_at'];
|
2017-11-28 08:57:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = [
|
|
|
|
'event_id',
|
|
|
|
'target_url',
|
|
|
|
];
|
2017-11-29 11:44:28 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getEntityType()
|
|
|
|
{
|
|
|
|
return ENTITY_SUBSCRIPTION;
|
|
|
|
}
|
|
|
|
|
2017-11-29 12:12:20 +01:00
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
|
|
|
public function account()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Account');
|
|
|
|
}
|
2017-11-29 11:44:28 +01:00
|
|
|
|
2015-03-16 22:45:25 +01:00
|
|
|
}
|