feat: implement deposit request validation and transaction API, refactor client routes, and update transaction schema.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user