| 1234567891011121314151617181920212223242526272829 |
- <?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',
- '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');
- }
- }
|