*/ protected $fillable = [ 'stock_attributes_id', 'language_id', 'translated_name', ]; /** * 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', 'language_id']; /** * Get the attribute that this translation belongs to. */ public function attribute(): BelongsTo { return $this->belongsTo(StockAttributes::class, 'stock_attributes_id'); } }