2016-06-11 04:47:26 +02:00
|
|
|
<?php namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Class ExpenseCategory
|
|
|
|
*/
|
2016-06-11 04:47:26 +02:00
|
|
|
class ExpenseCategory extends EntityModel
|
|
|
|
{
|
|
|
|
// Expense Categories
|
|
|
|
use SoftDeletes;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-06-11 04:47:26 +02:00
|
|
|
protected $fillable = [
|
|
|
|
'name',
|
|
|
|
];
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
2016-06-11 04:47:26 +02:00
|
|
|
public function expense()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Expense');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|