create service count floor level and retributions
This commit is contained in:
32
app/Models/FormulaParameter.php
Normal file
32
app/Models/FormulaParameter.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user