From fd1141a8d0f7f56a823d960fc8e650fbc018b22f Mon Sep 17 00:00:00 2001 From: Jesus Guerrero Date: Thu, 28 Mar 2024 00:37:58 -0400 Subject: [PATCH] fix: update current month sync on assignments --- .../Controllers/BudgetCategoryController.php | 3 +- .../Budget/Services/BudgetCategoryService.php | 5 - .../Budget/Services/BudgetMovementService.php | 13 +- .../Budget/Services/BudgetRolloverService.php | 8 +- app/Events/BudgetAssigned.php | 1 - app/Listeners/UpdateBudgetAvailable.php | 1 - composer.lock | 415 +++++++++--------- resources/js/utils/useInertiaForm.ts | 6 - 8 files changed, 224 insertions(+), 228 deletions(-) diff --git a/app/Domains/Budget/Http/Controllers/BudgetCategoryController.php b/app/Domains/Budget/Http/Controllers/BudgetCategoryController.php index 43af23dc..140b80ca 100644 --- a/app/Domains/Budget/Http/Controllers/BudgetCategoryController.php +++ b/app/Domains/Budget/Http/Controllers/BudgetCategoryController.php @@ -57,10 +57,9 @@ protected function index(Request $request) { return $model->withCurrentSavings($startDate); })); - return inertia($this->templates['index'], [ - $resourceName => $this->parser($resources), + $resourceName => $resources, "serverSearchOptions" => $this->getServerParams(), "accountTotal" => $this->accountService->getBalanceAs($teamId, $endDate), "distribution" => fn () => BudgetMonth::getMonthAssignmentByGroup($teamId, $startDate), diff --git a/app/Domains/Budget/Services/BudgetCategoryService.php b/app/Domains/Budget/Services/BudgetCategoryService.php index d52f090b..831afe16 100644 --- a/app/Domains/Budget/Services/BudgetCategoryService.php +++ b/app/Domains/Budget/Services/BudgetCategoryService.php @@ -4,7 +4,6 @@ use Brick\Money\Money; use Illuminate\Support\Str; -use App\Events\BudgetAssigned; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; use App\Helpers\RequestQueryHelper; @@ -227,10 +226,6 @@ public function getCategoryActivity(Category $category, string $month) $activity = $category->getMonthBalance($monthDate->format('Y-m'))?->balance; } - // if ($monthDate->format('Y-m') == '2024-01') { - // dd($transactions, $activity); - // } - return ($activity + $transactions) ?? 0; } diff --git a/app/Domains/Budget/Services/BudgetMovementService.php b/app/Domains/Budget/Services/BudgetMovementService.php index 71127e47..8c988422 100644 --- a/app/Domains/Budget/Services/BudgetMovementService.php +++ b/app/Domains/Budget/Services/BudgetMovementService.php @@ -3,6 +3,7 @@ namespace App\Domains\Budget\Services; use App\Events\BudgetAssigned; +use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; use Insane\Journal\Models\Core\Category; use App\Domains\Budget\Models\BudgetMonth; @@ -17,7 +18,7 @@ class BudgetMovementService const MODE_SUBTRACT = 'subtract'; - public function __construct(public BudgetCategoryService $budgetService) {} + public function __construct(public BudgetCategoryService $budgetService, private BudgetRolloverService $budgetRolloverService) {} /** * Based on the direction of the movement for each account add or subtract the amount @@ -70,7 +71,10 @@ public function registerMovement(BudgetMovementData $data, $quietly = false, $fr $this->updateBalances($sourceId, $savedMovement, $savedMovement->date, $amount, self::MODE_SUBTRACT); } DB::commit(); - BudgetAssigned::dispatch($data, $formData); + $this->budgetRolloverService->startFrom($data->team_id, substr($data->date, 0, 7), 1); + if (!now()->isSameMonth(Carbon::createFromFormat("Y-m-d", $data->date))) { + BudgetAssigned::dispatch($data, $formData); + } } public function registerAssignment(BudgetAssignData $data, $quietly = false) @@ -99,7 +103,10 @@ public function registerAssignment(BudgetAssignData $data, $quietly = false) $this->updateBalances($sourceId, $savedMovement, $savedMovement->date, $amount, self::MODE_SUBTRACT); } DB::commit(); - BudgetAssigned::dispatch($data, $formData); + $this->budgetRolloverService->startFrom($data->team_id, substr($data->date, 0, 7), 1); + if (!now()->isSameMonth(Carbon::createFromFormat("Y-m-d", $data->date))) { + BudgetAssigned::dispatch($data, $formData); + } } public function getBalanceOfCategory($categoryId, string $month) diff --git a/app/Domains/Budget/Services/BudgetRolloverService.php b/app/Domains/Budget/Services/BudgetRolloverService.php index 8cc02ddc..2e23eba7 100644 --- a/app/Domains/Budget/Services/BudgetRolloverService.php +++ b/app/Domains/Budget/Services/BudgetRolloverService.php @@ -29,9 +29,8 @@ public function rollMonth($teamId, $month, $categories = null) { } $overspending = 0; $fundedFromBudgets = 0; - $overspendingCategories = [ + $overspendingCategories = []; - ]; foreach ($categories as $category) { if($category->account_id) { $fundedFromBudgets += $this->budgetCategoryService->updateFundedSpending($category, $month); @@ -216,7 +215,7 @@ private function reduceOverspent() { // Not seeing an Underfunded Alert in your Credit Card Payment category? We're testing this new feature in stages and releasing it to everyone soon. } - public function startFrom($teamId, $yearMonth) { + public function startFrom($teamId, $yearMonth, $limit = null) { $this->team = Team::find($teamId); $this->accounts = Account::getByDetailTypes($teamId, AccountDetailType::ALL_CASH)->pluck('id'); @@ -231,6 +230,7 @@ public function startFrom($teamId, $yearMonth) { ->selectRaw("date_format(transaction_lines.date, '%Y-%m') AS date") ->groupBy(DB::raw("date_format(transaction_lines.date, '%Y-%m')")) ->whereRaw("date_format(transaction_lines.date, '%Y-%m') >= ?", [$yearMonth]) + ->when($limit, fn($q) => $q->limit($limit)) ->get() ->pluck('date'); @@ -249,5 +249,5 @@ public function startFrom($teamId, $yearMonth) { } } - // transactions with more than 3 days prior to the las recinciled transaction are not imported + // transactions with more than 3 days prior to the las reconciled transaction are not imported } diff --git a/app/Events/BudgetAssigned.php b/app/Events/BudgetAssigned.php index 4f9f391b..ecae56da 100644 --- a/app/Events/BudgetAssigned.php +++ b/app/Events/BudgetAssigned.php @@ -3,7 +3,6 @@ namespace App\Events; use Illuminate\Queue\SerializesModels; -use App\Domains\Budget\Models\BudgetMonth; use App\Domains\Budget\Data\BudgetAssignData; use Illuminate\Foundation\Events\Dispatchable; use App\Domains\Budget\Data\BudgetMovementData; diff --git a/app/Listeners/UpdateBudgetAvailable.php b/app/Listeners/UpdateBudgetAvailable.php index 55e4b01f..d75e211c 100644 --- a/app/Listeners/UpdateBudgetAvailable.php +++ b/app/Listeners/UpdateBudgetAvailable.php @@ -2,7 +2,6 @@ namespace App\Listeners; -use App\Events\BudgetAssigned; use Illuminate\Contracts\Queue\ShouldQueue; use App\Domains\Budget\Services\BudgetCategoryService; use App\Domains\Budget\Services\BudgetRolloverService; diff --git a/composer.lock b/composer.lock index dc7ce895..e1f6cea1 100644 --- a/composer.lock +++ b/composer.lock @@ -317,21 +317,22 @@ }, { "name": "amphp/parallel", - "version": "v2.2.6", + "version": "v2.2.9", "source": { "type": "git", "url": "https://github.com/amphp/parallel.git", - "reference": "5aeaad20297507cc754859236720501b54306eba" + "reference": "73d293f1fc4df1bebc3c4fce1432e82dd7032238" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/parallel/zipball/5aeaad20297507cc754859236720501b54306eba", - "reference": "5aeaad20297507cc754859236720501b54306eba", + "url": "https://api.github.com/repos/amphp/parallel/zipball/73d293f1fc4df1bebc3c4fce1432e82dd7032238", + "reference": "73d293f1fc4df1bebc3c4fce1432e82dd7032238", "shasum": "" }, "require": { "amphp/amp": "^3", "amphp/byte-stream": "^2", + "amphp/cache": "^2", "amphp/parser": "^1", "amphp/pipeline": "^1", "amphp/process": "^2", @@ -388,7 +389,7 @@ ], "support": { "issues": "https://github.com/amphp/parallel/issues", - "source": "https://github.com/amphp/parallel/tree/v2.2.6" + "source": "https://github.com/amphp/parallel/tree/v2.2.9" }, "funding": [ { @@ -396,20 +397,20 @@ "type": "github" } ], - "time": "2024-01-07T18:12:13+00:00" + "time": "2024-03-24T18:27:44+00:00" }, { "name": "amphp/parser", - "version": "v1.1.0", + "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/amphp/parser.git", - "reference": "ff1de4144726c5dad5fab97f66692ebe8de3e151" + "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/parser/zipball/ff1de4144726c5dad5fab97f66692ebe8de3e151", - "reference": "ff1de4144726c5dad5fab97f66692ebe8de3e151", + "url": "https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7", + "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7", "shasum": "" }, "require": { @@ -450,7 +451,7 @@ ], "support": { "issues": "https://github.com/amphp/parser/issues", - "source": "https://github.com/amphp/parser/tree/v1.1.0" + "source": "https://github.com/amphp/parser/tree/v1.1.1" }, "funding": [ { @@ -458,7 +459,7 @@ "type": "github" } ], - "time": "2022-12-30T18:08:47+00:00" + "time": "2024-03-21T19:16:53+00:00" }, { "name": "amphp/pipeline", @@ -655,16 +656,16 @@ }, { "name": "amphp/socket", - "version": "v2.2.4", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/amphp/socket.git", - "reference": "4223324c627cc26d44800630411e64856d3344bc" + "reference": "acc0a2f65ab498025ba5641f7cce499c4b1ed4b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/socket/zipball/4223324c627cc26d44800630411e64856d3344bc", - "reference": "4223324c627cc26d44800630411e64856d3344bc", + "url": "https://api.github.com/repos/amphp/socket/zipball/acc0a2f65ab498025ba5641f7cce499c4b1ed4b5", + "reference": "acc0a2f65ab498025ba5641f7cce499c4b1ed4b5", "shasum": "" }, "require": { @@ -727,7 +728,7 @@ ], "support": { "issues": "https://github.com/amphp/socket/issues", - "source": "https://github.com/amphp/socket/tree/v2.2.4" + "source": "https://github.com/amphp/socket/tree/v2.3.0" }, "funding": [ { @@ -735,20 +736,20 @@ "type": "github" } ], - "time": "2024-02-28T15:56:06+00:00" + "time": "2024-03-19T20:01:53+00:00" }, { "name": "amphp/sync", - "version": "v2.1.0", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/amphp/sync.git", - "reference": "50ddc7392cc8034b3e4798cef3cc90d3f4c0441c" + "reference": "375ef5b54a0d12c38e12728dde05a55e30f2fbec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/sync/zipball/50ddc7392cc8034b3e4798cef3cc90d3f4c0441c", - "reference": "50ddc7392cc8034b3e4798cef3cc90d3f4c0441c", + "url": "https://api.github.com/repos/amphp/sync/zipball/375ef5b54a0d12c38e12728dde05a55e30f2fbec", + "reference": "375ef5b54a0d12c38e12728dde05a55e30f2fbec", "shasum": "" }, "require": { @@ -762,7 +763,7 @@ "amphp/php-cs-fixer-config": "^2", "amphp/phpunit-util": "^3", "phpunit/phpunit": "^9", - "psalm/phar": "^5.4" + "psalm/phar": "5.23" }, "type": "library", "autoload": { @@ -802,7 +803,7 @@ ], "support": { "issues": "https://github.com/amphp/sync/issues", - "source": "https://github.com/amphp/sync/tree/v2.1.0" + "source": "https://github.com/amphp/sync/tree/v2.2.0" }, "funding": [ { @@ -810,7 +811,7 @@ "type": "github" } ], - "time": "2023-08-19T13:53:40+00:00" + "time": "2024-03-12T01:00:01+00:00" }, { "name": "amphp/windows-registry", @@ -2769,16 +2770,16 @@ }, { "name": "google/apiclient-services", - "version": "v0.339.0", + "version": "v0.341.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", - "reference": "5662d2ab3da41ac0e0e99db221a8c22c511c8f9c" + "reference": "50dad3cd4a3902bd2df0d96e7dc09cdaa2ba79b9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/5662d2ab3da41ac0e0e99db221a8c22c511c8f9c", - "reference": "5662d2ab3da41ac0e0e99db221a8c22c511c8f9c", + "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/50dad3cd4a3902bd2df0d96e7dc09cdaa2ba79b9", + "reference": "50dad3cd4a3902bd2df0d96e7dc09cdaa2ba79b9", "shasum": "" }, "require": { @@ -2807,9 +2808,9 @@ ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", - "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.339.0" + "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.341.0" }, - "time": "2024-03-10T01:06:17+00:00" + "time": "2024-03-24T01:08:16+00:00" }, { "name": "google/auth", @@ -2871,16 +2872,16 @@ }, { "name": "google/cloud-core", - "version": "v1.56.1", + "version": "v1.56.2", "source": { "type": "git", "url": "https://github.com/googleapis/google-cloud-php-core.git", - "reference": "c1ac9c2b89734b5e5f826af9919ae59cbaaadadc" + "reference": "686ffd0bb1328cd2ee963c4444e2ab4b111ba3ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/c1ac9c2b89734b5e5f826af9919ae59cbaaadadc", - "reference": "c1ac9c2b89734b5e5f826af9919ae59cbaaadadc", + "url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/686ffd0bb1328cd2ee963c4444e2ab4b111ba3ba", + "reference": "686ffd0bb1328cd2ee963c4444e2ab4b111ba3ba", "shasum": "" }, "require": { @@ -2931,22 +2932,22 @@ ], "description": "Google Cloud PHP shared dependency, providing functionality useful to all components.", "support": { - "source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.56.1" + "source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.56.2" }, - "time": "2024-03-01T11:25:35+00:00" + "time": "2024-03-15T18:39:38+00:00" }, { "name": "google/cloud-storage", - "version": "v1.39.1", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-cloud-php-storage.git", - "reference": "448e0db09e598c796aa7c68eaf20fdf9b10296ef" + "reference": "d934742d9efdf66ae3fe79fccdf34bda74dfb477" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-cloud-php-storage/zipball/448e0db09e598c796aa7c68eaf20fdf9b10296ef", - "reference": "448e0db09e598c796aa7c68eaf20fdf9b10296ef", + "url": "https://api.github.com/repos/googleapis/google-cloud-php-storage/zipball/d934742d9efdf66ae3fe79fccdf34bda74dfb477", + "reference": "d934742d9efdf66ae3fe79fccdf34bda74dfb477", "shasum": "" }, "require": { @@ -2988,9 +2989,9 @@ ], "description": "Cloud Storage Client for PHP", "support": { - "source": "https://github.com/googleapis/google-cloud-php-storage/tree/v1.39.1" + "source": "https://github.com/googleapis/google-cloud-php-storage/tree/v1.41.0" }, - "time": "2024-03-01T11:25:35+00:00" + "time": "2024-03-22T12:59:36+00:00" }, { "name": "google/common-protos", @@ -3973,16 +3974,16 @@ }, { "name": "jaybizzle/crawler-detect", - "version": "v1.2.116", + "version": "v1.2.117", "source": { "type": "git", "url": "https://github.com/JayBizzle/Crawler-Detect.git", - "reference": "97e9fe30219e60092e107651abb379a38b342921" + "reference": "6785557f03d0fa9e2205352ebae9a12a4484cc8e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/97e9fe30219e60092e107651abb379a38b342921", - "reference": "97e9fe30219e60092e107651abb379a38b342921", + "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/6785557f03d0fa9e2205352ebae9a12a4484cc8e", + "reference": "6785557f03d0fa9e2205352ebae9a12a4484cc8e", "shasum": "" }, "require": { @@ -4019,9 +4020,9 @@ ], "support": { "issues": "https://github.com/JayBizzle/Crawler-Detect/issues", - "source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.2.116" + "source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.2.117" }, - "time": "2023-07-21T15:49:49+00:00" + "time": "2024-03-19T22:51:22+00:00" }, { "name": "jenssegers/agent", @@ -4381,29 +4382,29 @@ }, { "name": "kreait/laravel-firebase", - "version": "5.7.0", + "version": "5.8.0", "source": { "type": "git", "url": "https://github.com/kreait/laravel-firebase.git", - "reference": "3628ce45ab9211146183610a3e8fc50c5ab5476a" + "reference": "a028cb6ad58c534f763fca03e7dcc392074631da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kreait/laravel-firebase/zipball/3628ce45ab9211146183610a3e8fc50c5ab5476a", - "reference": "3628ce45ab9211146183610a3e8fc50c5ab5476a", + "url": "https://api.github.com/repos/kreait/laravel-firebase/zipball/a028cb6ad58c534f763fca03e7dcc392074631da", + "reference": "a028cb6ad58c534f763fca03e7dcc392074631da", "shasum": "" }, "require": { - "illuminate/contracts": "^9.0 || ^10.0", - "illuminate/support": "^9.0 || ^10.0", + "illuminate/contracts": "^9.0 || ^10.0 || ^11.0", + "illuminate/support": "^9.0 || ^10.0 || ^11.0", "kreait/firebase-php": "^7.0", "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "symfony/cache": "^6.1.2 || ^7.0.3" }, "require-dev": { - "laravel/pint": "^1.13", - "orchestra/testbench": "^7.0 || ^8.0", - "phpunit/phpunit": "^9.6" + "laravel/pint": "^1.14", + "orchestra/testbench": "^7.0 || ^8.0 || ^9.0", + "phpunit/phpunit": "^9.6.17 || ^10.5.13" }, "type": "library", "extra": { @@ -4443,7 +4444,7 @@ ], "support": { "issues": "https://github.com/kreait/laravel-firebase/issues", - "source": "https://github.com/kreait/laravel-firebase/tree/5.7.0" + "source": "https://github.com/kreait/laravel-firebase/tree/5.8.0" }, "funding": [ { @@ -4451,7 +4452,7 @@ "type": "github" } ], - "time": "2024-02-19T18:44:01+00:00" + "time": "2024-03-13T18:33:13+00:00" }, { "name": "laminas/laminas-diactoros", @@ -4622,16 +4623,16 @@ }, { "name": "laravel/fortify", - "version": "v1.21.0", + "version": "v1.21.1", "source": { "type": "git", "url": "https://github.com/laravel/fortify.git", - "reference": "b34e672e1d341f6e520f81712f73e56f6cb80767" + "reference": "405388fd399264715573e23ed2f368fbce426da3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/fortify/zipball/b34e672e1d341f6e520f81712f73e56f6cb80767", - "reference": "b34e672e1d341f6e520f81712f73e56f6cb80767", + "url": "https://api.github.com/repos/laravel/fortify/zipball/405388fd399264715573e23ed2f368fbce426da3", + "reference": "405388fd399264715573e23ed2f368fbce426da3", "shasum": "" }, "require": { @@ -4639,7 +4640,8 @@ "ext-json": "*", "illuminate/support": "^10.0|^11.0", "php": "^8.1", - "pragmarx/google2fa": "^8.0" + "pragmarx/google2fa": "^8.0", + "symfony/console": "^6.0|^7.0" }, "require-dev": { "mockery/mockery": "^1.0", @@ -4682,20 +4684,20 @@ "issues": "https://github.com/laravel/fortify/issues", "source": "https://github.com/laravel/fortify" }, - "time": "2024-03-08T19:55:45+00:00" + "time": "2024-03-19T20:08:25+00:00" }, { "name": "laravel/framework", - "version": "v10.48.2", + "version": "v10.48.4", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "32a8bb151d748b579c3794dea53b56bd40dfbbd3" + "reference": "7e0701bf59cb76a51f7c1f7bea51c0c0c29c0b72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/32a8bb151d748b579c3794dea53b56bd40dfbbd3", - "reference": "32a8bb151d748b579c3794dea53b56bd40dfbbd3", + "url": "https://api.github.com/repos/laravel/framework/zipball/7e0701bf59cb76a51f7c1f7bea51c0c0c29c0b72", + "reference": "7e0701bf59cb76a51f7c1f7bea51c0c0c29c0b72", "shasum": "" }, "require": { @@ -4800,7 +4802,7 @@ "league/flysystem-sftp-v3": "^3.0", "mockery/mockery": "^1.5.1", "nyholm/psr7": "^1.2", - "orchestra/testbench-core": "^8.18", + "orchestra/testbench-core": "^8.23.4", "pda/pheanstalk": "^4.0", "phpstan/phpstan": "^1.4.7", "phpunit/phpunit": "^10.0.7", @@ -4889,7 +4891,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-03-12T16:35:43+00:00" + "time": "2024-03-21T13:36:36+00:00" }, { "name": "laravel/jetstream", @@ -4963,16 +4965,16 @@ }, { "name": "laravel/octane", - "version": "v2.3.5", + "version": "v2.3.6", "source": { "type": "git", "url": "https://github.com/laravel/octane.git", - "reference": "723574348341397cd0e5b59bd12e49de946c710e" + "reference": "a7877303e61ffe4aa58c4f77774bb92457d9af02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/octane/zipball/723574348341397cd0e5b59bd12e49de946c710e", - "reference": "723574348341397cd0e5b59bd12e49de946c710e", + "url": "https://api.github.com/repos/laravel/octane/zipball/a7877303e61ffe4aa58c4f77774bb92457d9af02", + "reference": "a7877303e61ffe4aa58c4f77774bb92457d9af02", "shasum": "" }, "require": { @@ -4981,6 +4983,7 @@ "laravel/serializable-closure": "^1.3.0", "nesbot/carbon": "^2.66.0|^3.0", "php": "^8.1.0", + "symfony/console": "^6.0|^7.0", "symfony/psr-http-message-bridge": "^2.2.0|^6.4|^7.0" }, "conflict": { @@ -5047,20 +5050,20 @@ "issues": "https://github.com/laravel/octane/issues", "source": "https://github.com/laravel/octane" }, - "time": "2024-03-08T16:14:35+00:00" + "time": "2024-03-26T13:30:26+00:00" }, { "name": "laravel/prompts", - "version": "v0.1.16", + "version": "v0.1.17", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "ca6872ab6aec3ab61db3a61f83a6caf764ec7781" + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/ca6872ab6aec3ab61db3a61f83a6caf764ec7781", - "reference": "ca6872ab6aec3ab61db3a61f83a6caf764ec7781", + "url": "https://api.github.com/repos/laravel/prompts/zipball/8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", "shasum": "" }, "require": { @@ -5102,43 +5105,44 @@ ], "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.1.16" + "source": "https://github.com/laravel/prompts/tree/v0.1.17" }, - "time": "2024-02-21T19:25:27+00:00" + "time": "2024-03-13T16:05:43+00:00" }, { "name": "laravel/pulse", - "version": "v1.0.0-beta15", + "version": "v1.0.0-beta16", "source": { "type": "git", "url": "https://github.com/laravel/pulse.git", - "reference": "6fc88b3ead77fd1c67428f0c0fa6ac2ec5302e2b" + "reference": "bd05ae7bfb9a6671c91f7eb25e742ee2497df0df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pulse/zipball/6fc88b3ead77fd1c67428f0c0fa6ac2ec5302e2b", - "reference": "6fc88b3ead77fd1c67428f0c0fa6ac2ec5302e2b", + "url": "https://api.github.com/repos/laravel/pulse/zipball/bd05ae7bfb9a6671c91f7eb25e742ee2497df0df", + "reference": "bd05ae7bfb9a6671c91f7eb25e742ee2497df0df", "shasum": "" }, "require": { "doctrine/sql-formatter": "^1.1", "guzzlehttp/promises": "^1.0|^2.0", - "illuminate/auth": "^10.34|^11.0", - "illuminate/cache": "^10.34|^11.0", - "illuminate/config": "^10.34|^11.0", - "illuminate/console": "^10.34|^11.0", - "illuminate/contracts": "^10.34|^11.0", - "illuminate/database": "^10.34|^11.0", - "illuminate/events": "^10.34|^11.0", - "illuminate/http": "^10.34|^11.0", - "illuminate/queue": "^10.34|^11.0", - "illuminate/redis": "^10.34|^11.0", - "illuminate/routing": "^10.34|^11.0", - "illuminate/support": "^10.34|^11.0", - "illuminate/view": "^10.34|^11.0", + "illuminate/auth": "^10.48.4|^11.0.8", + "illuminate/cache": "^10.48.4|^11.0.8", + "illuminate/config": "^10.48.4|^11.0.8", + "illuminate/console": "^10.48.4|^11.0.8", + "illuminate/contracts": "^10.48.4|^11.0.8", + "illuminate/database": "^10.48.4|^11.0.8", + "illuminate/events": "^10.48.4|^11.0.8", + "illuminate/http": "^10.48.4|^11.0.8", + "illuminate/queue": "^10.48.4|^11.0.8", + "illuminate/redis": "^10.48.4|^11.0.8", + "illuminate/routing": "^10.48.4|^11.0.8", + "illuminate/support": "^10.48.4|^11.0.8", + "illuminate/view": "^10.48.4|^11.0.8", "livewire/livewire": "^3.2", "nesbot/carbon": "^2.67|^3.0", - "php": "^8.1" + "php": "^8.1", + "symfony/console": "^6.0|^7.0" }, "conflict": { "nunomaduro/collision": "<7.7.0" @@ -5146,7 +5150,7 @@ "require-dev": { "guzzlehttp/guzzle": "^7.7", "mockery/mockery": "^1.0", - "orchestra/testbench": "^8.16|^9.0", + "orchestra/testbench": "^8.23.1|^9.0", "pestphp/pest": "^2.0", "pestphp/pest-plugin-laravel": "^2.2", "phpstan/phpstan": "^1.11", @@ -5190,7 +5194,7 @@ "issues": "https://github.com/laravel/pulse/issues", "source": "https://github.com/laravel/pulse" }, - "time": "2024-03-11T13:19:11+00:00" + "time": "2024-03-24T15:02:27+00:00" }, { "name": "laravel/sanctum", @@ -5712,16 +5716,16 @@ }, { "name": "league/flysystem", - "version": "3.25.0", + "version": "3.26.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "4c44347133618cccd9b3df1729647a1577b4ad99" + "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/4c44347133618cccd9b3df1729647a1577b4ad99", - "reference": "4c44347133618cccd9b3df1729647a1577b4ad99", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/072735c56cc0da00e10716dd90d5a7f7b40b36be", + "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be", "shasum": "" }, "require": { @@ -5786,7 +5790,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.25.0" + "source": "https://github.com/thephpleague/flysystem/tree/3.26.0" }, "funding": [ { @@ -5798,20 +5802,20 @@ "type": "github" } ], - "time": "2024-03-09T17:06:45+00:00" + "time": "2024-03-25T11:49:53+00:00" }, { "name": "league/flysystem-local", - "version": "3.23.1", + "version": "3.25.1", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-local.git", - "reference": "b884d2bf9b53bb4804a56d2df4902bb51e253f00" + "reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/b884d2bf9b53bb4804a56d2df4902bb51e253f00", - "reference": "b884d2bf9b53bb4804a56d2df4902bb51e253f00", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/61a6a90d6e999e4ddd9ce5adb356de0939060b92", + "reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92", "shasum": "" }, "require": { @@ -5845,8 +5849,7 @@ "local" ], "support": { - "issues": "https://github.com/thephpleague/flysystem-local/issues", - "source": "https://github.com/thephpleague/flysystem-local/tree/3.23.1" + "source": "https://github.com/thephpleague/flysystem-local/tree/3.25.1" }, "funding": [ { @@ -5858,7 +5861,7 @@ "type": "github" } ], - "time": "2024-01-26T18:25:23+00:00" + "time": "2024-03-15T19:58:44+00:00" }, { "name": "league/mime-type-detection", @@ -5918,16 +5921,16 @@ }, { "name": "league/uri", - "version": "7.4.0", + "version": "7.4.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri.git", - "reference": "bf414ba956d902f5d98bf9385fcf63954f09dce5" + "reference": "bedb6e55eff0c933668addaa7efa1e1f2c417cc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri/zipball/bf414ba956d902f5d98bf9385fcf63954f09dce5", - "reference": "bf414ba956d902f5d98bf9385fcf63954f09dce5", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/bedb6e55eff0c933668addaa7efa1e1f2c417cc4", + "reference": "bedb6e55eff0c933668addaa7efa1e1f2c417cc4", "shasum": "" }, "require": { @@ -5996,7 +5999,7 @@ "docs": "https://uri.thephpleague.com", "forum": "https://thephpleague.slack.com", "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri/tree/7.4.0" + "source": "https://github.com/thephpleague/uri/tree/7.4.1" }, "funding": [ { @@ -6004,20 +6007,20 @@ "type": "github" } ], - "time": "2023-12-01T06:24:25+00:00" + "time": "2024-03-23T07:42:40+00:00" }, { "name": "league/uri-interfaces", - "version": "7.4.0", + "version": "7.4.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri-interfaces.git", - "reference": "bd8c487ec236930f7bbc42b8d374fa882fbba0f3" + "reference": "8d43ef5c841032c87e2de015972c06f3865ef718" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/bd8c487ec236930f7bbc42b8d374fa882fbba0f3", - "reference": "bd8c487ec236930f7bbc42b8d374fa882fbba0f3", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/8d43ef5c841032c87e2de015972c06f3865ef718", + "reference": "8d43ef5c841032c87e2de015972c06f3865ef718", "shasum": "" }, "require": { @@ -6080,7 +6083,7 @@ "docs": "https://uri.thephpleague.com", "forum": "https://thephpleague.slack.com", "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri-interfaces/tree/7.4.0" + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.4.1" }, "funding": [ { @@ -6088,20 +6091,20 @@ "type": "github" } ], - "time": "2023-11-24T15:40:42+00:00" + "time": "2024-03-23T07:42:40+00:00" }, { "name": "livewire/livewire", - "version": "v3.4.8", + "version": "v3.4.9", "source": { "type": "git", "url": "https://github.com/livewire/livewire.git", - "reference": "0335b8f022ac535fc3cf29fd8a8fcb275353a470" + "reference": "c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/0335b8f022ac535fc3cf29fd8a8fcb275353a470", - "reference": "0335b8f022ac535fc3cf29fd8a8fcb275353a470", + "url": "https://api.github.com/repos/livewire/livewire/zipball/c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0", + "reference": "c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0", "shasum": "" }, "require": { @@ -6155,7 +6158,7 @@ "description": "A front-end framework for Laravel.", "support": { "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v3.4.8" + "source": "https://github.com/livewire/livewire/tree/v3.4.9" }, "funding": [ { @@ -6163,7 +6166,7 @@ "type": "github" } ], - "time": "2024-03-08T13:01:50+00:00" + "time": "2024-03-14T14:03:32+00:00" }, { "name": "maatwebsite/excel", @@ -6820,29 +6823,29 @@ }, { "name": "mvanduijker/laravel-mercure-broadcaster", - "version": "3.5.0", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/mvanduijker/laravel-mercure-broadcaster.git", - "reference": "10f1c75ea28827fc4e2ad6e8d6359287a1ce4896" + "reference": "752cec8589bee25c9cd14fa336ea1aa03de5efb9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mvanduijker/laravel-mercure-broadcaster/zipball/10f1c75ea28827fc4e2ad6e8d6359287a1ce4896", - "reference": "10f1c75ea28827fc4e2ad6e8d6359287a1ce4896", + "url": "https://api.github.com/repos/mvanduijker/laravel-mercure-broadcaster/zipball/752cec8589bee25c9cd14fa336ea1aa03de5efb9", + "reference": "752cec8589bee25c9cd14fa336ea1aa03de5efb9", "shasum": "" }, "require": { - "illuminate/broadcasting": "~6.0|~7.0|~8.0|~9.0|~10.0", + "illuminate/broadcasting": "~6.0|~7.0|~8.0|~9.0|~10.0|~11.0", "lcobucci/jwt": "~4.0", "php": "^7.4|^8.0", "symfony/mercure": "~0.4" }, "require-dev": { "larapack/dd": "^1.0", - "orchestra/testbench": "~4.0|~5.0|~6.0|~7.0|~8.0", - "phpunit/phpunit": "^9.3", - "symfony/process": "~4.4|~5.0|~6.0" + "orchestra/testbench": "~4.0|~5.0|~6.0|~7.0|~8.0|~9.0", + "phpunit/phpunit": "^9.4|^10.0", + "symfony/process": "~4.4|~5.0|~6.0|~7.0" }, "type": "library", "extra": { @@ -6881,9 +6884,9 @@ ], "support": { "issues": "https://github.com/mvanduijker/laravel-mercure-broadcaster/issues", - "source": "https://github.com/mvanduijker/laravel-mercure-broadcaster/tree/3.5.0" + "source": "https://github.com/mvanduijker/laravel-mercure-broadcaster/tree/3.6.0" }, - "time": "2023-02-14T20:43:00+00:00" + "time": "2024-03-13T20:10:02+00:00" }, { "name": "nesbot/carbon", @@ -7528,16 +7531,16 @@ }, { "name": "phenx/php-svg-lib", - "version": "0.5.2", + "version": "0.5.3", "source": { "type": "git", "url": "https://github.com/dompdf/php-svg-lib.git", - "reference": "732faa9fb4309221e2bd9b2fda5de44f947133aa" + "reference": "0e46722c154726a5f9ac218197ccc28adba16fcf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/732faa9fb4309221e2bd9b2fda5de44f947133aa", - "reference": "732faa9fb4309221e2bd9b2fda5de44f947133aa", + "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/0e46722c154726a5f9ac218197ccc28adba16fcf", + "reference": "0e46722c154726a5f9ac218197ccc28adba16fcf", "shasum": "" }, "require": { @@ -7556,7 +7559,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "LGPL-3.0" + "LGPL-3.0-or-later" ], "authors": [ { @@ -7568,9 +7571,9 @@ "homepage": "https://github.com/PhenX/php-svg-lib", "support": { "issues": "https://github.com/dompdf/php-svg-lib/issues", - "source": "https://github.com/dompdf/php-svg-lib/tree/0.5.2" + "source": "https://github.com/dompdf/php-svg-lib/tree/0.5.3" }, - "time": "2024-02-07T12:49:40+00:00" + "time": "2024-02-23T20:39:24+00:00" }, { "name": "php-mime-mail-parser/php-mime-mail-parser", @@ -8060,16 +8063,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.26.0", + "version": "1.27.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "231e3186624c03d7e7c890ec662b81e6b0405227" + "reference": "86e4d5a4b036f8f0be1464522f4c6b584c452757" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/231e3186624c03d7e7c890ec662b81e6b0405227", - "reference": "231e3186624c03d7e7c890ec662b81e6b0405227", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/86e4d5a4b036f8f0be1464522f4c6b584c452757", + "reference": "86e4d5a4b036f8f0be1464522f4c6b584c452757", "shasum": "" }, "require": { @@ -8101,9 +8104,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.26.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.27.0" }, - "time": "2024-02-23T16:05:55+00:00" + "time": "2024-03-21T13:14:53+00:00" }, { "name": "pragmarx/google2fa", @@ -8676,16 +8679,16 @@ }, { "name": "psy/psysh", - "version": "v0.12.0", + "version": "v0.12.2", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "750bf031a48fd07c673dbe3f11f72362ea306d0d" + "reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/750bf031a48fd07c673dbe3f11f72362ea306d0d", - "reference": "750bf031a48fd07c673dbe3f11f72362ea306d0d", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/9185c66c2165bbf4d71de78a69dccf4974f9538d", + "reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d", "shasum": "" }, "require": { @@ -8749,9 +8752,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.12.0" + "source": "https://github.com/bobthecow/psysh/tree/v0.12.2" }, - "time": "2023-12-20T15:28:09+00:00" + "time": "2024-03-17T01:53:00+00:00" }, { "name": "ralouphie/getallheaders", @@ -9287,16 +9290,16 @@ }, { "name": "spatie/laravel-data", - "version": "4.4.0", + "version": "4.4.1", "source": { "type": "git", "url": "https://github.com/spatie/laravel-data.git", - "reference": "65865fc61205aa3c55a9a89d16225c9da3f6b9da" + "reference": "3d2cc18cd54c347654329a9bdcf823d9849c27fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-data/zipball/65865fc61205aa3c55a9a89d16225c9da3f6b9da", - "reference": "65865fc61205aa3c55a9a89d16225c9da3f6b9da", + "url": "https://api.github.com/repos/spatie/laravel-data/zipball/3d2cc18cd54c347654329a9bdcf823d9849c27fd", + "reference": "3d2cc18cd54c347654329a9bdcf823d9849c27fd", "shasum": "" }, "require": { @@ -9359,7 +9362,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-data/issues", - "source": "https://github.com/spatie/laravel-data/tree/4.4.0" + "source": "https://github.com/spatie/laravel-data/tree/4.4.1" }, "funding": [ { @@ -9367,7 +9370,7 @@ "type": "github" } ], - "time": "2024-03-13T11:09:02+00:00" + "time": "2024-03-20T08:34:26+00:00" }, { "name": "spatie/laravel-navigation", @@ -9517,16 +9520,16 @@ }, { "name": "spatie/laravel-package-tools", - "version": "1.16.3", + "version": "1.16.4", "source": { "type": "git", "url": "https://github.com/spatie/laravel-package-tools.git", - "reference": "59db18c2e20d49a0b6d447bb1c654f6c123beb9e" + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/59db18c2e20d49a0b6d447bb1c654f6c123beb9e", - "reference": "59db18c2e20d49a0b6d447bb1c654f6c123beb9e", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", "shasum": "" }, "require": { @@ -9565,7 +9568,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-package-tools/issues", - "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.3" + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.4" }, "funding": [ { @@ -9573,7 +9576,7 @@ "type": "github" } ], - "time": "2024-03-07T07:35:57+00:00" + "time": "2024-03-20T07:29:11+00:00" }, { "name": "spatie/laravel-typescript-transformer", @@ -9770,16 +9773,16 @@ }, { "name": "spatie/php-structure-discoverer", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/spatie/php-structure-discoverer.git", - "reference": "f5b3c935dda89d6c382b27e3caf348fa80bcfa88" + "reference": "24f5221641560ec0f7dce23dd814e7d555b0098b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/php-structure-discoverer/zipball/f5b3c935dda89d6c382b27e3caf348fa80bcfa88", - "reference": "f5b3c935dda89d6c382b27e3caf348fa80bcfa88", + "url": "https://api.github.com/repos/spatie/php-structure-discoverer/zipball/24f5221641560ec0f7dce23dd814e7d555b0098b", + "reference": "24f5221641560ec0f7dce23dd814e7d555b0098b", "shasum": "" }, "require": { @@ -9838,7 +9841,7 @@ ], "support": { "issues": "https://github.com/spatie/php-structure-discoverer/issues", - "source": "https://github.com/spatie/php-structure-discoverer/tree/2.1.0" + "source": "https://github.com/spatie/php-structure-discoverer/tree/2.1.1" }, "funding": [ { @@ -9846,7 +9849,7 @@ "type": "github" } ], - "time": "2024-02-16T12:42:24+00:00" + "time": "2024-03-13T16:08:30+00:00" }, { "name": "spatie/typescript-transformer", @@ -13895,16 +13898,16 @@ }, { "name": "laravel/pint", - "version": "v1.14.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "6b127276e3f263f7bb17d5077e9e0269e61b2a0e" + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/6b127276e3f263f7bb17d5077e9e0269e61b2a0e", - "reference": "6b127276e3f263f7bb17d5077e9e0269e61b2a0e", + "url": "https://api.github.com/repos/laravel/pint/zipball/c52de679b3ac01207016c179d7ce173e4be128c4", + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4", "shasum": "" }, "require": { @@ -13957,20 +13960,20 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-02-20T17:38:05+00:00" + "time": "2024-03-26T16:40:24+00:00" }, { "name": "mockery/mockery", - "version": "1.6.9", + "version": "1.6.11", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "0cc058854b3195ba21dc6b1f7b1f60f4ef3a9c06" + "reference": "81a161d0b135df89951abd52296adf97deb0723d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/0cc058854b3195ba21dc6b1f7b1f60f4ef3a9c06", - "reference": "0cc058854b3195ba21dc6b1f7b1f60f4ef3a9c06", + "url": "https://api.github.com/repos/mockery/mockery/zipball/81a161d0b135df89951abd52296adf97deb0723d", + "reference": "81a161d0b135df89951abd52296adf97deb0723d", "shasum": "" }, "require": { @@ -13982,8 +13985,8 @@ "phpunit/phpunit": "<8.0" }, "require-dev": { - "phpunit/phpunit": "^8.5 || ^9.6.10", - "symplify/easy-coding-standard": "^12.0.8" + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" }, "type": "library", "autoload": { @@ -14040,7 +14043,7 @@ "security": "https://github.com/mockery/mockery/security/advisories", "source": "https://github.com/mockery/mockery" }, - "time": "2023-12-10T02:24:34+00:00" + "time": "2024-03-21T18:34:15+00:00" }, { "name": "myclabs/deep-copy", @@ -14638,16 +14641,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.13", + "version": "10.5.15", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "20a63fc1c6db29b15da3bd02d4b6cf59900088a7" + "reference": "86376e05e8745ed81d88232ff92fee868247b07b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/20a63fc1c6db29b15da3bd02d4b6cf59900088a7", - "reference": "20a63fc1c6db29b15da3bd02d4b6cf59900088a7", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/86376e05e8745ed81d88232ff92fee868247b07b", + "reference": "86376e05e8745ed81d88232ff92fee868247b07b", "shasum": "" }, "require": { @@ -14719,7 +14722,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.13" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.15" }, "funding": [ { @@ -14735,7 +14738,7 @@ "type": "tidelift" } ], - "time": "2024-03-12T15:37:41+00:00" + "time": "2024-03-22T04:17:47+00:00" }, { "name": "sebastian/cli-parser", @@ -15109,16 +15112,16 @@ }, { "name": "sebastian/environment", - "version": "6.0.1", + "version": "6.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951" + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/43c751b41d74f96cbbd4e07b7aec9675651e2951", - "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", "shasum": "" }, "require": { @@ -15133,7 +15136,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "6.1-dev" } }, "autoload": { @@ -15161,7 +15164,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/6.0.1" + "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" }, "funding": [ { @@ -15169,7 +15172,7 @@ "type": "github" } ], - "time": "2023-04-11T05:39:26+00:00" + "time": "2024-03-23T08:47:14+00:00" }, { "name": "sebastian/exporter", diff --git a/resources/js/utils/useInertiaForm.ts b/resources/js/utils/useInertiaForm.ts index 79c66a31..19d217eb 100644 --- a/resources/js/utils/useInertiaForm.ts +++ b/resources/js/utils/useInertiaForm.ts @@ -91,9 +91,6 @@ export const useInertiaForm = ( }, setError(fieldOrFields: keyof IFormState | Record, maybeValue?: string) { Object.assign(this.errors, typeof fieldOrFields === 'string' ? { [fieldOrFields]: maybeValue } : fieldOrFields) - - this.hasErrors = Object.keys(this.errors).length > 0 - return this }, clearErrors(...fields: any[]) { @@ -105,8 +102,6 @@ export const useInertiaForm = ( {}, ) - this.hasErrors = Object.keys(this.errors).length > 0 - return this }, submitEvent: (event: string) => { @@ -263,7 +258,6 @@ export const useInertiaForm = ( } }); } - console.log(form.errors) return !form.hasErrors; }, });