src/Models/AttributeEntity.php
<?php
declare(strict_types=1);
namespace Rinvex\Attributes\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Rinvex\Attributes\Models\AttributeEntity.
*
* @property int $attribute_id
* @property string $entity_type
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
*
* @method static \Illuminate\Database\Eloquent\Builder|\Rinvex\Attributes\Models\AttributeEntity whereAttributeId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Rinvex\Attributes\Models\AttributeEntity whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Rinvex\Attributes\Models\AttributeEntity whereEntityType($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Rinvex\Attributes\Models\AttributeEntity whereUpdatedAt($value)
* @mixin \Eloquent
*/
class AttributeEntity extends Model
{
/**
* {@inheritdoc}
*/
protected $fillable = [
'entity_type',
];
/**
* {@inheritdoc}
*/
protected $casts = [
'entity_type' => 'string',
];
/**
* Create a new Eloquent model instance.
*
* @param array $attributes
*/
public function __construct(array $attributes = [])
{
$this->setTable(config('rinvex.attributes.tables.attribute_entity'));
parent::__construct($attributes);
}
}