<?php namespace App; use Illuminate\Database\Eloquent\Model; class TicketMain extends Model { protected $guarded = ['id','created_at','updated_at']; public function ticket_user_blocks() { return $this->hasMany(TicketUserBlock::class)->with(['seat', 'match_event', 'ticket_type']); } public function tickets() { return $this->hasMany(Ticket::class)->with(['seat', 'match_event', 'ticket_type']); } }