1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00
invoiceninja/app/Models/TaxRate.php
2016-03-15 19:08:00 -04:00

24 lines
418 B
PHP

<?php namespace App\Models;
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 canEdit() {
return Auth::user()->hasPermission('admin');
}
}