Added plant in model file

This commit is contained in:
dhanabalan
2025-07-10 15:12:01 +05:30
parent 4311c64531
commit 170b784a9b

View File

@@ -12,6 +12,7 @@ class AlertMailRule extends Model
protected $fillable = [ protected $fillable = [
'module', 'module',
'plant',
'rule_name', 'rule_name',
'email', 'email',
'schedule_type', 'schedule_type',
@@ -21,8 +22,8 @@ class AlertMailRule extends Model
'updated_by', 'updated_by',
]; ];
public function plant(): BelongsTo // public function plant(): BelongsTo
{ // {
return $this->belongsTo(Plant::class); // return $this->belongsTo(Plant::class);
} // }
} }