<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AppointmentPayment extends Model
{
protected $connection = 'mysql_appointments';
protected $table = 'payments';
protected $primaryKey = 'id';
protected $casts = [
'raw_payload' => 'array',
'transaction_date' => 'datetime',
];
public function appointment()
{
return $this->belongsTo('App\Models\Appointment', 'appointment_id');
}
}