<?php namespace App; use Illuminate\Database\Eloquent\Model; class SymbolicTicketUser extends Model { function symbolic_ticket(){ return $this->belongsTo(SymbolicTicket::class)->with('match_event'); } function symbolic_ticket_price(){ return $this->belongsTo(SymbolicTicketPrice::class); } function user(){ return $this->belongsTo(User::class); } }