belongsTo(MtUserTicket::class, 'ticket_id'); } public function user() { return $this->belongsTo(User::class); } public function scopeForBusiness($query, $business_id) { return $query->where('business_id', $business_id); } }