commit
12645f37fa
1 changed files with 20 additions and 0 deletions
20
app/Models/ExpenseCategory.php
Normal file
20
app/Models/ExpenseCategory.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
|
||||
class ExpenseCategory extends EntityModel
|
||||
{
|
||||
// Expense Categories
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
];
|
||||
|
||||
public function expense()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Expense');
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue