Files
ntspi-app/app/Containers/Event/Models/EventCategory.php
T
F4ilji c7a779d9aa refactor(models): replace HasFactory with HasContainerFactory across all models
Add static $factory property for Porto-style model factory resolution
2026-09-18 01:39:22 +05:00

22 lines
475 B
PHP
Executable File

<?php
namespace App\Containers\Event\Models;
use App\Ship\Models\Model;
use App\Ship\Traits\HasContainerFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
class EventCategory extends Model
{
use HasContainerFactory;
protected static string $factory = \Database\Factories\EventCategoryFactory::class;
protected $guarded = false;
public function events() : HasMany
{
return $this->hasMany(Event::class, 'category_id', 'id');
}
}