| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class FranchiseeContractTaxHistory extends Model
- {
- protected $table = 'franchisee_contract_tax_histories';
- protected $guarded = ['id'];
- protected $casts = [
- 'tbr_fixed_value' => 'decimal:2',
- 'tbr_fixed_value_percentage' => 'decimal:4',
- 'marketing_fund_percentage' => 'decimal:4',
- 'maintance_tax_percentage' => 'decimal:4',
- ];
- public function contract(): BelongsTo
- {
- return $this->belongsTo(FranchiseeContract::class, 'franchisee_contract_id');
- }
- public function inhabitantClassification(): BelongsTo
- {
- return $this->belongsTo(InhabitantClassification::class, 'inhabitant_classification_id');
- }
- }
|