<?php namespace App; use Illuminate\Database\Eloquent\Model; class TicketUserBlock extends Model { protected $guarded = ['id','created_at','updated_at']; public function seat(){ return $this->belongsTo(Seat::class)->with(['letter', 'zone']); } public function match_event(){ return $this->belongsTo(MatchEvent::class)->with('team','tournament'); } public function ticket_type(){ return $this->belongsTo(TicketType::class); } }