| 1 | <?php |
||
| 8 | class Tax extends Model |
||
| 9 | { |
||
| 10 | protected $fillable = [ |
||
| 11 | 'name', 'type', 'retention', |
||
| 12 | ]; |
||
| 13 | |||
| 14 | protected $casts = [ |
||
| 15 | 'retention' => 'boolean', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public function taxGroup() |
||
| 22 | |||
| 23 | public function info(): TaxContract |
||
| 29 | |||
| 30 | public function getInfoAttribute(): TaxContract |
||
| 34 | |||
| 35 | public function scopeRetention($query) |
||
| 39 | |||
| 40 | public function scopeTraslate($query) |
||
| 44 | } |
||
| 45 |