diff --git a/app/Modules/LoanOrder/Controllers/LoanOrderController.php b/app/Modules/LoanOrder/Controllers/LoanOrderController.php index 40b0ec3..88e71ea 100644 --- a/app/Modules/LoanOrder/Controllers/LoanOrderController.php +++ b/app/Modules/LoanOrder/Controllers/LoanOrderController.php @@ -6,6 +6,7 @@ use App\Http\Controllers\Controller; use App\Models\Order\Loan\LoanOrder; use App\Modules\DateHelper\Repositories\DateHelperRepository; use App\Modules\LoanOrder\Controllers\Requests\LoanOrderStoreRequest; +use App\Modules\LoanOrder\Controllers\Requests\LoanOrderUpdateRequest; use App\Modules\LoanOrder\Controllers\Resources\LoanOrderIndexResource; use App\Modules\LoanOrder\Controllers\Resources\LoanOrderShowResource; use App\Repos\Order\OrderRepo; @@ -109,7 +110,7 @@ class LoanOrderController extends Controller * * `Karz sargytlary update`. ID ugradyp `route`-da update edip bilyan. Base App Enum-lardan peydalan. Panelkadan gor. */ - public function update(Request $request, LoanOrder $loanOrder): JsonResponse + public function update(LoanOrderUpdateRequest $request, LoanOrder $loanOrder): JsonResponse { Log::channel('form_logs')->info('loan-order-update-request', $request->all()); diff --git a/composer.lock b/composer.lock index 623a965..9e57815 100644 --- a/composer.lock +++ b/composer.lock @@ -393,16 +393,16 @@ }, { "name": "dedoc/scramble", - "version": "v0.12.20", + "version": "v0.12.22", "source": { "type": "git", "url": "https://github.com/dedoc/scramble.git", - "reference": "283bc6a8790ffaa5ea14d2cbdba83a42b414f7f5" + "reference": "3c06a756d4fc20a281638e8ba9941f6463000d78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dedoc/scramble/zipball/283bc6a8790ffaa5ea14d2cbdba83a42b414f7f5", - "reference": "283bc6a8790ffaa5ea14d2cbdba83a42b414f7f5", + "url": "https://api.github.com/repos/dedoc/scramble/zipball/3c06a756d4fc20a281638e8ba9941f6463000d78", + "reference": "3c06a756d4fc20a281638e8ba9941f6463000d78", "shasum": "" }, "require": { @@ -461,7 +461,7 @@ ], "support": { "issues": "https://github.com/dedoc/scramble/issues", - "source": "https://github.com/dedoc/scramble/tree/v0.12.20" + "source": "https://github.com/dedoc/scramble/tree/v0.12.22" }, "funding": [ { @@ -469,7 +469,7 @@ "type": "github" } ], - "time": "2025-05-28T13:13:29+00:00" + "time": "2025-06-03T07:50:53+00:00" }, { "name": "denniseilander/pulse-about-application", @@ -4544,16 +4544,16 @@ }, { "name": "nette/utils", - "version": "v4.0.6", + "version": "v4.0.7", "source": { "type": "git", "url": "https://github.com/nette/utils.git", - "reference": "ce708655043c7050eb050df361c5e313cf708309" + "reference": "e67c4061eb40b9c113b218214e42cb5a0dda28f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/utils/zipball/ce708655043c7050eb050df361c5e313cf708309", - "reference": "ce708655043c7050eb050df361c5e313cf708309", + "url": "https://api.github.com/repos/nette/utils/zipball/e67c4061eb40b9c113b218214e42cb5a0dda28f2", + "reference": "e67c4061eb40b9c113b218214e42cb5a0dda28f2", "shasum": "" }, "require": { @@ -4624,22 +4624,22 @@ ], "support": { "issues": "https://github.com/nette/utils/issues", - "source": "https://github.com/nette/utils/tree/v4.0.6" + "source": "https://github.com/nette/utils/tree/v4.0.7" }, - "time": "2025-03-30T21:06:30+00:00" + "time": "2025-06-03T04:55:08+00:00" }, { "name": "nikic/php-parser", - "version": "v5.4.0", + "version": "v5.5.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "447a020a1f875a434d62f2a401f53b82a396e494" + "reference": "ae59794362fe85e051a58ad36b289443f57be7a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", - "reference": "447a020a1f875a434d62f2a401f53b82a396e494", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ae59794362fe85e051a58ad36b289443f57be7a9", + "reference": "ae59794362fe85e051a58ad36b289443f57be7a9", "shasum": "" }, "require": { @@ -4682,9 +4682,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.5.0" }, - "time": "2024-12-30T11:07:19+00:00" + "time": "2025-05-31T08:24:38+00:00" }, { "name": "nova-kit/nova-packages-tool", @@ -5343,16 +5343,16 @@ }, { "name": "phpoffice/math", - "version": "0.2.0", + "version": "0.3.0", "source": { "type": "git", "url": "https://github.com/PHPOffice/Math.git", - "reference": "fc2eb6d1a61b058d5dac77197059db30ee3c8329" + "reference": "fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPOffice/Math/zipball/fc2eb6d1a61b058d5dac77197059db30ee3c8329", - "reference": "fc2eb6d1a61b058d5dac77197059db30ee3c8329", + "url": "https://api.github.com/repos/PHPOffice/Math/zipball/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a", + "reference": "fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a", "shasum": "" }, "require": { @@ -5389,9 +5389,9 @@ ], "support": { "issues": "https://github.com/PHPOffice/Math/issues", - "source": "https://github.com/PHPOffice/Math/tree/0.2.0" + "source": "https://github.com/PHPOffice/Math/tree/0.3.0" }, - "time": "2024-08-12T07:30:45+00:00" + "time": "2025-05-29T08:31:49+00:00" }, { "name": "phpoffice/phpword", @@ -5399,12 +5399,12 @@ "source": { "type": "git", "url": "https://github.com/PHPOffice/PHPWord.git", - "reference": "6ca8c9ff67e0ea7729973b7b3a33626febad6628" + "reference": "0ab0b4940bc52c7183e82ab2fd55324607037a73" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPOffice/PHPWord/zipball/6ca8c9ff67e0ea7729973b7b3a33626febad6628", - "reference": "6ca8c9ff67e0ea7729973b7b3a33626febad6628", + "url": "https://api.github.com/repos/PHPOffice/PHPWord/zipball/0ab0b4940bc52c7183e82ab2fd55324607037a73", + "reference": "0ab0b4940bc52c7183e82ab2fd55324607037a73", "shasum": "" }, "require": { @@ -5414,7 +5414,7 @@ "ext-xml": "*", "ext-zip": "*", "php": "^7.1|^8.0", - "phpoffice/math": "^0.2" + "phpoffice/math": "^0.3" }, "require-dev": { "dompdf/dompdf": "^2.0 || ^3.0", @@ -5422,7 +5422,7 @@ "friendsofphp/php-cs-fixer": "^3.3", "mpdf/mpdf": "^7.0 || ^8.0", "phpmd/phpmd": "^2.13", - "phpstan/phpstan": "^0.12.88 || ^1.0.0", + "phpstan/phpstan": "^0.12.88 || ^1.0.0 || ^2.0.0", "phpstan/phpstan-phpunit": "^1.0 || ^2.0", "phpunit/phpunit": ">=7.0", "symfony/process": "^4.4 || ^5.0", @@ -5500,7 +5500,7 @@ "issues": "https://github.com/PHPOffice/PHPWord/issues", "source": "https://github.com/PHPOffice/PHPWord/tree/master" }, - "time": "2025-02-20T20:19:21+00:00" + "time": "2025-06-06T10:02:28+00:00" }, { "name": "phpoption/phpoption", @@ -6286,20 +6286,20 @@ }, { "name": "ramsey/uuid", - "version": "4.7.6", + "version": "4.8.1", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "91039bc1faa45ba123c4328958e620d382ec7088" + "reference": "fdf4dd4e2ff1813111bd0ad58d7a1ddbb5b56c28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", - "reference": "91039bc1faa45ba123c4328958e620d382ec7088", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/fdf4dd4e2ff1813111bd0ad58d7a1ddbb5b56c28", + "reference": "fdf4dd4e2ff1813111bd0ad58d7a1ddbb5b56c28", "shasum": "" }, "require": { - "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13", "ext-json": "*", "php": "^8.0", "ramsey/collection": "^1.2 || ^2.0" @@ -6308,26 +6308,23 @@ "rhumsaa/uuid": "self.version" }, "require-dev": { - "captainhook/captainhook": "^5.10", + "captainhook/captainhook": "^5.25", "captainhook/plugin-composer": "^5.3", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "doctrine/annotations": "^1.8", - "ergebnis/composer-normalize": "^2.15", - "mockery/mockery": "^1.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ergebnis/composer-normalize": "^2.47", + "mockery/mockery": "^1.6", "paragonie/random-lib": "^2", - "php-mock/php-mock": "^2.2", - "php-mock/php-mock-mockery": "^1.3", - "php-parallel-lint/php-parallel-lint": "^1.1", - "phpbench/phpbench": "^1.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-mockery": "^1.1", - "phpstan/phpstan-phpunit": "^1.1", - "phpunit/phpunit": "^8.5 || ^9", - "ramsey/composer-repl": "^1.4", - "slevomat/coding-standard": "^8.4", - "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "^4.9" + "php-mock/php-mock": "^2.6", + "php-mock/php-mock-mockery": "^1.5", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6", + "slevomat/coding-standard": "^8.18", + "squizlabs/php_codesniffer": "^3.13" }, "suggest": { "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", @@ -6362,19 +6359,9 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.7.6" + "source": "https://github.com/ramsey/uuid/tree/4.8.1" }, - "funding": [ - { - "url": "https://github.com/ramsey", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", - "type": "tidelift" - } - ], - "time": "2024-04-27T21:32:50+00:00" + "time": "2025-06-01T06:28:46+00:00" }, { "name": "rap2hpoutre/fast-excel", @@ -6583,16 +6570,16 @@ }, { "name": "spatie/image", - "version": "3.8.3", + "version": "3.8.4", "source": { "type": "git", "url": "https://github.com/spatie/image.git", - "reference": "54a7331a4d1ba7712603dd058522613506d2dfe0" + "reference": "df315a480113081c5c27958bee9bf3f97f36fe76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/image/zipball/54a7331a4d1ba7712603dd058522613506d2dfe0", - "reference": "54a7331a4d1ba7712603dd058522613506d2dfe0", + "url": "https://api.github.com/repos/spatie/image/zipball/df315a480113081c5c27958bee9bf3f97f36fe76", + "reference": "df315a480113081c5c27958bee9bf3f97f36fe76", "shasum": "" }, "require": { @@ -6640,7 +6627,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/image/tree/3.8.3" + "source": "https://github.com/spatie/image/tree/3.8.4" }, "funding": [ { @@ -6652,7 +6639,7 @@ "type": "github" } ], - "time": "2025-04-25T08:04:51+00:00" + "time": "2025-06-04T08:18:18+00:00" }, { "name": "spatie/image-optimizer", @@ -6980,16 +6967,16 @@ }, { "name": "spatie/laravel-permission", - "version": "6.18.0", + "version": "6.19.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-permission.git", - "reference": "3c05f04d12275dfbe462c8b4aae3290e586c2dde" + "reference": "0cd412dcad066d75caf0b977716809be7e7642fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/3c05f04d12275dfbe462c8b4aae3290e586c2dde", - "reference": "3c05f04d12275dfbe462c8b4aae3290e586c2dde", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/0cd412dcad066d75caf0b977716809be7e7642fd", + "reference": "0cd412dcad066d75caf0b977716809be7e7642fd", "shasum": "" }, "require": { @@ -7051,7 +7038,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-permission/issues", - "source": "https://github.com/spatie/laravel-permission/tree/6.18.0" + "source": "https://github.com/spatie/laravel-permission/tree/6.19.0" }, "funding": [ { @@ -7059,7 +7046,7 @@ "type": "github" } ], - "time": "2025-05-14T03:32:23+00:00" + "time": "2025-05-31T00:50:27+00:00" }, { "name": "spatie/laravel-signal-aware-command", @@ -10747,16 +10734,16 @@ }, { "name": "filp/whoops", - "version": "2.18.0", + "version": "2.18.1", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e" + "reference": "8fcc6a862f2e7b94eb4221fd0819ddba3d30ab26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e", - "reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e", + "url": "https://api.github.com/repos/filp/whoops/zipball/8fcc6a862f2e7b94eb4221fd0819ddba3d30ab26", + "reference": "8fcc6a862f2e7b94eb4221fd0819ddba3d30ab26", "shasum": "" }, "require": { @@ -10806,7 +10793,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.18.0" + "source": "https://github.com/filp/whoops/tree/2.18.1" }, "funding": [ { @@ -10814,7 +10801,7 @@ "type": "github" } ], - "time": "2025-03-15T12:00:00+00:00" + "time": "2025-06-03T18:56:14+00:00" }, { "name": "hamcrest/hamcrest-php", diff --git a/routes/api.php b/routes/api.php index 729e264..66dc8d0 100644 --- a/routes/api.php +++ b/routes/api.php @@ -66,7 +66,7 @@ Route::middleware(['auth:sanctum', 'not_banned'])->group(function () { // Metrics... Route::get('/metrics', [MetricsController::class, 'index']); - // Loan order... + // Loan order... [tested expect: update] Route::get('loan-order', [LoanOrderController::class, 'index']); Route::get('loan-order/{loanOrder}', [LoanOrderController::class, 'show']); Route::post('loan-order', [LoanOrderController::class, 'store']);