File "StateSalesTax.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Models/StateSalesTax.php
File size: 606 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class StateSalesTax extends Model
{
use HasFactory;
protected $table = 'state_sales_taxes';
protected $fillable = [
'name',
'tax_percentage',
];
protected $dates = [
'created_at',
'updated_at',
];
protected $casts = [
'created_at' => 'date:m-d-Y',
'updated_at' => 'date:m-d-Y',
];
protected function getTaxPercentageAttribute($value): float
{
return (float) trim($value);
}
}