File: /var/www/vhost/disk-apps/teamdemo.sports-crowd.com/app/TicketMain.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TicketMain extends Model
{
    protected $guarded  = ['id', 'created_at', 'updated_at'];
    protected $casts = [
        'id' => 'integer'
    ];
    public function ticket_user_blocks()
    {
        return $this->hasMany(TicketUserBlock::class)->with(['seat', 'match_event', 'ticket_type']);
    }
    public function ticket_user_block_backups()
    {
        return $this->hasMany(TicketUserBlockBackup::class)->with(['seat', 'match_event', 'ticket_type']);
    }
    public function tickets()
    {
        return $this->hasMany(Ticket::class)->with(['seat', 'match_event', 'ticket_type']);
    }
    public function payment_coins()
    {
        return $this->belongsTo(PaymentCoin::class);
    }
    public function all_tickets()
    {
        return $this->hasMany(Ticket::class)->with(['seat', 'match_event', 'ticket_type']);
    }
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id_log');
    }
    public function seller()
    {
        return $this->belongsTo(User::class, 'seller_user_id');
    }
}