*/ protected $fillable = [ 'stock_attributes_id', 'stock_attribute_value_id', ]; /** * Indicates if the model has a primary key. * * @var bool */ public $incrementing = false; /** * The primary key for the model. * * @var array */ protected $primaryKey = ['stock_attributes_id', 'stock_attribute_value_id']; /** * Get the attribute that this relationship belongs to. */ public function attribute(): BelongsTo { return $this->belongsTo(StockAttributes::class, 'stock_attributes_id'); } /** * Get the attribute value that this relationship belongs to. */ public function attributeValue(): BelongsTo { return $this->belongsTo(StockAttributeValues::class, 'stock_attribute_value_id'); } }