<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Payment extends Model
{
    use SoftDeletes;

    protected $fillable = ['invoice_id', 'meta', 'aramex', 'token', 'status', 'user_id', 'payment_type'];

    protected $casts = ['meta' => 'array', 'aramex' => 'array'];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
