28 lines
529 B
PHP
28 lines
529 B
PHP
<?php
|
|
|
|
namespace App\Domains\Prop\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
#[Fillable([
|
|
'prop_id',
|
|
'value',
|
|
'label',
|
|
'sort_order',
|
|
])]
|
|
class PropOption extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* @return BelongsTo<Prop, $this>
|
|
*/
|
|
public function prop(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Prop::class);
|
|
}
|
|
}
|