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 ⭐️

643 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Models;

use HiEvents\DomainObjects\Generated\EventLineupEntryDomainObjectAbstract;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class EventLineupEntry extends BaseModel
{
    protected $table = 'event_lineup_entries';

    public function event(): BelongsTo
    {
        return $this->belongsTo(Event::class);
    }

    public function profile(): BelongsTo
    {
        return $this->belongsTo(Profile::class);
    }

    protected function getCastMap(): array
    {
        return [
            EventLineupEntryDomainObjectAbstract::IS_HIDDEN => 'boolean',
        ];
    }
}