for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file implements Subscription Period.
*
* @author Bilal Gultekin <[email protected]>
* @author Justin Hartman <[email protected]>
* @copyright 2019 22 Digital
* @license MIT
* @since v0.1
*/
namespace TwentyTwoDigital\CashierFastspring;
use Illuminate\Database\Eloquent\Model;
* This class describes a subscription period.
* {@inheritdoc}
class SubscriptionPeriod extends Model
{
* The attributes that are not mass assignable.
* @var array
protected $guarded = [];
* The attributes that should be mutated to dates.
protected $dates = [
'start_date', 'end_date',
'created_at', 'updated_at',
];
* Get the user that owns the subscription.
* @return object Subscription object.
public function subscription()
return $this->belongsTo('TwentyTwoDigital\CashierFastspring\Subscription');
}