mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
26 lines
439 B
PHP
26 lines
439 B
PHP
<?php namespace App\Models;
|
|
|
|
use Auth;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class TaxRate extends EntityModel
|
|
{
|
|
use SoftDeletes;
|
|
protected $dates = ['deleted_at'];
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'rate'
|
|
];
|
|
|
|
public function getEntityType()
|
|
{
|
|
return ENTITY_TAX_RATE;
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\Models\User')->withTrashed();
|
|
}
|
|
}
|