<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Transaction extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id', 'item_id', 'total', 'pay_done', 'done_method',
        'tabby_payment_id', 'tamara_order_id', 'pay_method', 'payment_method',
        'platform', 'type', 'invoice_id', 'payment_id', 'meta',
        'token', 'response',
    ];

    protected $casts = ['meta' => 'array'];
}
