create service count floor level and retributions

This commit is contained in:
arifal
2025-06-18 18:44:30 +07:00
parent df70a47bd1
commit 59cc102c5a
13 changed files with 1415 additions and 180 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FormulaParameter extends Model
{
use HasFactory;
protected $fillable = [
'formula_id',
'parameter_id',
];
/**
* Relationship to MasterFormula
*/
public function formula()
{
return $this->belongsTo(MasterFormula::class, 'formula_id');
}
/**
* Relationship to MasterParameter
*/
public function parameter()
{
return $this->belongsTo(MasterParameter::class, 'parameter_id');
}
}