Added stickerMaster hasMany relation

This commit is contained in:
dhanabalan
2025-04-03 12:12:22 +05:30
parent 9c1203df67
commit fc0ed8bb38

View File

@@ -21,4 +21,9 @@ class Item extends Model
{ {
return $this->belongsTo(Plant::class); return $this->belongsTo(Plant::class);
} }
public function stickerMasters()
{
return $this->hasMany(StickerMaster::class, 'item_id', 'id');
}
} }