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
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class DepositRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'amount' => 'required|numeric|min:10000',
];
}
public function messages(): array
{
return [
'amount.required' => 'Số tiền nạp không được bỏ trống.',
'amount.numeric' => 'Số tiền nạp phải là một số.',
'amount.min' => 'Số tiền nạp tối thiểu là :min đồng.',
];
}
}