Added plant in model file
This commit is contained in:
@@ -12,6 +12,7 @@ class AlertMailRule extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'module',
|
||||
'plant',
|
||||
'rule_name',
|
||||
'email',
|
||||
'schedule_type',
|
||||
@@ -21,8 +22,8 @@ class AlertMailRule extends Model
|
||||
'updated_by',
|
||||
];
|
||||
|
||||
public function plant(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
// public function plant(): BelongsTo
|
||||
// {
|
||||
// return $this->belongsTo(Plant::class);
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user