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.

44 lines
932 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',
'opening_hours',
'address',
'lat',
'lng',
'unit_name',
'contact_name',
'contact_phone',
'qr_verify_method',
'verify_contact_info',
'detail_html',
];
protected $casts = [
'venue_total_quota' => 'integer',
'lat' => 'float',
'lng' => 'float',
];
public function ticketGrabEvent(): BelongsTo
{
return $this->belongsTo(TicketGrabEvent::class, 'ticket_grab_event_id');
}
public function venue(): BelongsTo
{
return $this->belongsTo(Venue::class);
}
}