Compare commits
2 Commits
772ac9ad0f
...
0480ebad91
| Author | SHA1 | Date | |
|---|---|---|---|
| 0480ebad91 | |||
| eefe130ad3 |
@@ -26,6 +26,7 @@ class CardPinController extends Controller
|
||||
CardPin::query()
|
||||
->with('branch', 'cardType')
|
||||
->where('user_id', auth()->id())
|
||||
->latest()
|
||||
->get()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ class CardRequisiteController extends Controller
|
||||
CardRequisite::query()
|
||||
->with(['cardType', 'branch'])
|
||||
->where('user_id', auth()->id())
|
||||
->latest()
|
||||
->get()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ class LoanOrderRemainingOrderController extends Controller
|
||||
return response()->json(
|
||||
LoanRemainingOrder::query()
|
||||
->where('user_id', auth()->id())
|
||||
->latest()
|
||||
->get()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class ResetPasswordController extends Controller
|
||||
{
|
||||
$request->validate([
|
||||
'username' => ['required', 'string', 'max:250', 'exists:users,username'],
|
||||
'verification' => ['nullable', 'integer', 'digits:5', Rule::requiredIf(fn () => $request->filled('step-verification'))],
|
||||
'verification' => ['nullable', 'integer', Rule::requiredIf(fn () => $request->filled('step-verification'))],
|
||||
'step-sms' => ['nullable'],
|
||||
'step-verification' => ['nullable'],
|
||||
'step-password' => ['nullable'],
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace App\Models\Order\Card\CardPin;
|
||||
use App\Models\Branch\Branch;
|
||||
use App\Models\Order\Card\CardType;
|
||||
use App\Models\User;
|
||||
use App\Repos\Order\Loan\LoanOrderRepo;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
@@ -121,4 +122,15 @@ class CardPin extends Model
|
||||
{
|
||||
return 3.02;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* "boot" method for model
|
||||
*/
|
||||
protected static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
static::created(LoanOrderRepo::created());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ class LoanOrderController extends Controller
|
||||
});
|
||||
|
||||
return response()->json([
|
||||
'message' => __('Successfully updates'),
|
||||
'message' => __('Successfully updated'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ class VisaMasterPaymentOrderController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
|
||||
return response()->json();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -351,5 +351,7 @@
|
||||
"Money Balance": "Galyndy",
|
||||
"Start date": "Başlangyç sene",
|
||||
"End date": "Ahyrky sene",
|
||||
"Expiry date": "Möhleti"
|
||||
"Expiry date": "Möhleti",
|
||||
"Successfully created": "Üstünlikli döredildi",
|
||||
"Successfully updated": "Üstünlikli üýtgedildi"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user