You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
654 B
32 lines
654 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class TicketGrabEventVenue extends Model
|
|
{
|
|
protected $table = 'ticket_grab_event_venue';
|
|
|
|
protected $fillable = [
|
|
'ticket_grab_event_id',
|
|
'venue_id',
|
|
'venue_total_quota',
|
|
];
|
|
|
|
protected $casts = [
|
|
'venue_total_quota' => 'integer',
|
|
];
|
|
|
|
public function ticketGrabEvent(): BelongsTo
|
|
{
|
|
return $this->belongsTo(TicketGrabEvent::class, 'ticket_grab_event_id');
|
|
}
|
|
|
|
public function venue(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Venue::class);
|
|
}
|
|
}
|