vat_wms/app/Models/StockAttributeValues.php
2025-05-13 12:32:55 +02:00

39 lines
792 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StockAttributeValues extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'stock_attribute_values';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'stock_attribute_id',
'name',
'language_id',
];
/**
* Get the attribute that this value belongs to.
*/
public function attribute(): BelongsTo
{
return $this->belongsTo(StockAttributes::class, 'stock_attribute_id');
}
}