Clean up lots of models.

This commit is contained in:
James Cole
2016-12-24 17:36:51 +01:00
parent 9f2729d0ff
commit 5b5acba816
31 changed files with 427 additions and 88 deletions

View File

@@ -27,10 +27,24 @@ class AvailableBudget extends Model
{
use SoftDeletes;
/** @var array */
protected $dates = ['created_at', 'updated_at', 'deleted_at', 'start_date', 'end_date'];
/** @var array */
protected $fillable = ['user_id', 'transaction_currency_id', 'amount', 'start_date', 'end_date'];
/** @var array */
protected $dates = ['created_at', 'updated_at', 'deleted_at'];
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts
= [
'created_at' => 'date',
'updated_at' => 'date',
'deleted_at' => 'date',
'start_date' => 'date',
'end_date' => 'date',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/