Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

469 B
Raw Blame
<?php

declare(strict_types=1);

namespace Tests\Feature\Repository\Fixtures;

use HiEvents\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\HasMany;

class WidgetCategoryModel extends BaseModel
{
    protected $table = 'br_test_widget_categories';

    protected function getFillableFields(): array
    {
        return ['name'];
    }

    public function widgets(): HasMany
    {
        return $this->hasMany(WidgetModel::class, 'category_id');
    }
}