*/ protected $fillable = [ 'name', 'physical_item_type_id', 'manufacturer_id', 'in_stock', 'blocked', 'selling_price', 'description', 'created_by', 'updated_by' ]; /** * Get the stock entries for this physical item. */ public function stockEntries(): HasMany { return $this->hasMany(StockEntry::class, 'physical_item_id'); } public function manufacturer() { return $this->hasOne(Manufacturer::class, 'id', 'manufacturer_id'); } }