feat: implement deposit request validation and transaction API, refactor client routes, and update transaction schema.

This commit is contained in:
pbao9
2026-02-18 21:17:13 +07:00
parent 31cbdf323f
commit 9a2cab4521
12 changed files with 371 additions and 175 deletions
+9 -2
View File
@@ -9,11 +9,18 @@ use Illuminate\Database\Eloquent\SoftDeletes;
class Transaction extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'transaction';
protected $table = 'transactions';
protected $fillable = [
'trans',
'amount',
'customer_id'
'customer_id',
'status'
];
public function customer()
{
return $this->belongsTo(Customer::class, 'customer_id');
}
}