elektronika_bagisto/packages/Webkul/Attribute/src/Models/Attribute.php

21 lines
537 B
PHP

<?php
namespace Webkul\Attribute\Models;
use Webkul\Core\Eloquent\TranslatableModel;
use Webkul\Attribute\Models\AttributeOption;
class Attribute extends TranslatableModel
{
public $translatedAttributes = ['name'];
protected $fillable = ['code', 'admin_name', 'type', 'position', 'is_required', 'is_unique', 'value_per_locale', 'value_per_channel', 'is_filterable', 'is_configurable'];
/**
* Get the options.
*/
public function options()
{
return $this->hasMany(AttributeOption::class);
}
}