26 lines
525 B
PHP
26 lines
525 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class SeatingLimit extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $guarded = [];
|
|
protected $with = ['audition', 'ensemble'];
|
|
|
|
public function audition(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Audition::class);
|
|
}
|
|
|
|
public function ensemble(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Ensemble::class);
|
|
}
|
|
|
|
}
|