Attendize/app/Models/Affiliate.php

35 lines
603 B
PHP
Raw Normal View History

2016-03-05 00:18:10 +00:00
<?php
namespace App\Models;
2016-02-29 15:59:36 +00:00
/*
Attendize.com - Event Management & Ticketing
*/
2016-03-05 00:18:10 +00:00
class Affiliate extends \Illuminate\Database\Eloquent\Model
{
2016-03-14 16:37:38 +00:00
/**
* The attributes that are mass assignable.
*
* @var array $fillable
*/
protected $fillable = [
'name',
'visits',
'tickets_sold',
'event_id',
'account_id',
'sales_volume'
];
2016-03-05 00:18:10 +00:00
2016-03-14 16:37:38 +00:00
/**
* The attributes that should be mutated to dates.
*
2016-09-06 19:33:19 +00:00
* @return array $dates
2016-03-14 16:37:38 +00:00
*/
2016-03-05 00:18:10 +00:00
public function getDates()
{
return ['created_at', 'updated_at'];
2016-02-29 15:59:36 +00:00
}
}