<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
protected $fillable = [
'user_id',
'type',
'amount',
'description',
'status',
'tx_ref',
];
protected $table = 'transactions';
public function user()
{
return $this->belongsTo(User::class);
}
}