From b72b14811a441bbd70ca9230a3db9f497571c61f Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 6 Aug 2026 11:00:51 +0200 Subject: [PATCH] wip delete wron starttime in events --- .../Pages/ListStatistikoEvents.php | 15 +- composer.lock | 184 +++++++++--------- 2 files changed, 108 insertions(+), 91 deletions(-) diff --git a/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php b/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php index 5391adad..a5d16204 100644 --- a/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php +++ b/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php @@ -20,10 +20,23 @@ class ListStatistikoEvents extends ListRecords ->color('gray') ->tooltip('Find events with wrong starttime') ->icon('phosphor-magnifying-glass') - ->modalSubmitAction(false) + ->modalSubmitAction(fn(Action $action) => $action->label('Delete all') + ->color('danger') + ->icon('heroicon-o-trash')) + // ->modalSubmitAction( + // fn(\Filament\Actions\StaticAction $action) => + // $action->color('danger') + // ->icon('heroicon-o-trash') + // ) + // ->modalSubmitActionLabel('Delete') ->modalContent(function () { $events = StatistikoEvent::with('league')->with('home')->with('away')->where('starttime', '<', new DateTime('-10 years'))->get(); return view('filament.pages.list-fixtures-starttime', ['events' => $events]); + })->action(function () { + $events = StatistikoEvent::with('league')->with('home')->with('away')->where('starttime', '<', new DateTime('-10 years'))->get(); + foreach ($events as $value) { + StatistikoEvent::where('match_id', $value->match_id)->delete(); + } }), Action::make('truncate') ->icon('phosphor-trash') diff --git a/composer.lock b/composer.lock index 7097ecb7..6017a3fa 100644 --- a/composer.lock +++ b/composer.lock @@ -1152,16 +1152,16 @@ }, { "name": "danharrin/livewire-rate-limiting", - "version": "v2.2.0", + "version": "v2.2.1", "source": { "type": "git", "url": "https://github.com/danharrin/livewire-rate-limiting.git", - "reference": "c03e649220089f6e5a52d422e24e3f98c73e456d" + "reference": "69436717dc70e30f80d7f8fd02504c22992a9ad5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/c03e649220089f6e5a52d422e24e3f98c73e456d", - "reference": "c03e649220089f6e5a52d422e24e3f98c73e456d", + "url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/69436717dc70e30f80d7f8fd02504c22992a9ad5", + "reference": "69436717dc70e30f80d7f8fd02504c22992a9ad5", "shasum": "" }, "require": { @@ -1169,7 +1169,7 @@ "php": "^8.0" }, "require-dev": { - "livewire/livewire": "^3.0", + "livewire/livewire": "^3.0|^4.0", "livewire/volt": "^1.3", "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0", "phpunit/phpunit": "^9.0|^10.0|^11.5.3|^12.5.12" @@ -1202,7 +1202,7 @@ "type": "github" } ], - "time": "2026-03-16T11:29:23+00:00" + "time": "2026-08-06T08:41:51+00:00" }, { "name": "dflydev/dot-access-data", @@ -1579,16 +1579,16 @@ }, { "name": "filament/actions", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", - "reference": "995b58bf41f26bad5d457fca0246fbb07820c3b4" + "reference": "da3ed6cc03bd604b8b875ea03d4e9ef02c279eb2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/actions/zipball/995b58bf41f26bad5d457fca0246fbb07820c3b4", - "reference": "995b58bf41f26bad5d457fca0246fbb07820c3b4", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/da3ed6cc03bd604b8b875ea03d4e9ef02c279eb2", + "reference": "da3ed6cc03bd604b8b875ea03d4e9ef02c279eb2", "shasum": "" }, "require": { @@ -1624,20 +1624,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:13:50+00:00" + "time": "2026-08-05T20:45:04+00:00" }, { "name": "filament/filament", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "81100c0692e684fc1950173dd60d7947f4d235f5" + "reference": "7e75d8da9b907ead7d618ce8237228316d08ae43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/81100c0692e684fc1950173dd60d7947f4d235f5", - "reference": "81100c0692e684fc1950173dd60d7947f4d235f5", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/7e75d8da9b907ead7d618ce8237228316d08ae43", + "reference": "7e75d8da9b907ead7d618ce8237228316d08ae43", "shasum": "" }, "require": { @@ -1681,20 +1681,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-31T03:39:19+00:00" + "time": "2026-08-05T20:52:57+00:00" }, { "name": "filament/forms", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "5b4e193bf6b4e86a51e20db3db33a734d0a28f11" + "reference": "3295b3acfe81dc75faa3a6dbbfea551e4df10887" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/5b4e193bf6b4e86a51e20db3db33a734d0a28f11", - "reference": "5b4e193bf6b4e86a51e20db3db33a734d0a28f11", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/3295b3acfe81dc75faa3a6dbbfea551e4df10887", + "reference": "3295b3acfe81dc75faa3a6dbbfea551e4df10887", "shasum": "" }, "require": { @@ -1731,20 +1731,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-31T03:39:08+00:00" + "time": "2026-08-05T20:51:04+00:00" }, { "name": "filament/infolists", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", - "reference": "fba46bc691a120a3251326b77cdafe758b41386a" + "reference": "dca2f115006b716f2293e29042f9c9b410fc3548" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/infolists/zipball/fba46bc691a120a3251326b77cdafe758b41386a", - "reference": "fba46bc691a120a3251326b77cdafe758b41386a", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/dca2f115006b716f2293e29042f9c9b410fc3548", + "reference": "dca2f115006b716f2293e29042f9c9b410fc3548", "shasum": "" }, "require": { @@ -1776,20 +1776,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:09:16+00:00" + "time": "2026-08-05T20:44:03+00:00" }, { "name": "filament/notifications", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", - "reference": "c0c90201667a2fa64293be8af4a4baf565c00879" + "reference": "f188823f2e681883e1fa419af7e2f2a17d4c63c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/notifications/zipball/c0c90201667a2fa64293be8af4a4baf565c00879", - "reference": "c0c90201667a2fa64293be8af4a4baf565c00879", + "url": "https://api.github.com/repos/filamentphp/notifications/zipball/f188823f2e681883e1fa419af7e2f2a17d4c63c5", + "reference": "f188823f2e681883e1fa419af7e2f2a17d4c63c5", "shasum": "" }, "require": { @@ -1823,20 +1823,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:13:39+00:00" + "time": "2026-08-05T20:49:13+00:00" }, { "name": "filament/query-builder", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/query-builder.git", - "reference": "30ecea7c77c0066ee09c5902e820c62f816f8837" + "reference": "d658205b135ef364c992f5d5d518e9463099aab4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/query-builder/zipball/30ecea7c77c0066ee09c5902e820c62f816f8837", - "reference": "30ecea7c77c0066ee09c5902e820c62f816f8837", + "url": "https://api.github.com/repos/filamentphp/query-builder/zipball/d658205b135ef364c992f5d5d518e9463099aab4", + "reference": "d658205b135ef364c992f5d5d518e9463099aab4", "shasum": "" }, "require": { @@ -1869,20 +1869,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:13:35+00:00" + "time": "2026-08-05T20:44:12+00:00" }, { "name": "filament/schemas", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/schemas.git", - "reference": "53d4346cf0d7abbfc5f7157c761365766153a080" + "reference": "3e191f49090645685a34560f5a3e1ba28ed3e7bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/schemas/zipball/53d4346cf0d7abbfc5f7157c761365766153a080", - "reference": "53d4346cf0d7abbfc5f7157c761365766153a080", + "url": "https://api.github.com/repos/filamentphp/schemas/zipball/3e191f49090645685a34560f5a3e1ba28ed3e7bc", + "reference": "3e191f49090645685a34560f5a3e1ba28ed3e7bc", "shasum": "" }, "require": { @@ -1914,20 +1914,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-31T03:39:26+00:00" + "time": "2026-08-05T20:51:01+00:00" }, { "name": "filament/support", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", - "reference": "37aee7759b9ef434c246c28aef87d0f17bb88fd7" + "reference": "b6a33dd2af46160abe73226d671b1bc490a84a27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/support/zipball/37aee7759b9ef434c246c28aef87d0f17bb88fd7", - "reference": "37aee7759b9ef434c246c28aef87d0f17bb88fd7", + "url": "https://api.github.com/repos/filamentphp/support/zipball/b6a33dd2af46160abe73226d671b1bc490a84a27", + "reference": "b6a33dd2af46160abe73226d671b1bc490a84a27", "shasum": "" }, "require": { @@ -1972,20 +1972,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:09:20+00:00" + "time": "2026-08-05T20:51:57+00:00" }, { "name": "filament/tables", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "c412d9ab38c0e77bbd6be0527b8c6dd026bea082" + "reference": "be471ed4a9f2e7dcbbb134db622a03d4e89f7a21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/c412d9ab38c0e77bbd6be0527b8c6dd026bea082", - "reference": "c412d9ab38c0e77bbd6be0527b8c6dd026bea082", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/be471ed4a9f2e7dcbbb134db622a03d4e89f7a21", + "reference": "be471ed4a9f2e7dcbbb134db622a03d4e89f7a21", "shasum": "" }, "require": { @@ -2018,20 +2018,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:11:13+00:00" + "time": "2026-08-05T20:51:25+00:00" }, { "name": "filament/widgets", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", - "reference": "917a6fd81577512bb1e586664e6e40bc0c668d58" + "reference": "e500c98debe26112008398933fcf3ed50ee103f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/widgets/zipball/917a6fd81577512bb1e586664e6e40bc0c668d58", - "reference": "917a6fd81577512bb1e586664e6e40bc0c668d58", + "url": "https://api.github.com/repos/filamentphp/widgets/zipball/e500c98debe26112008398933fcf3ed50ee103f7", + "reference": "e500c98debe26112008398933fcf3ed50ee103f7", "shasum": "" }, "require": { @@ -2062,7 +2062,7 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:14:03+00:00" + "time": "2026-08-05T20:49:46+00:00" }, { "name": "fruitcake/php-cors", @@ -2257,21 +2257,21 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.15.2", + "version": "7.15.3", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "744101956d78b7c1384d0cbf379db13e859167bf" + "reference": "ae311b8f045ea93ce7b1c9cdb7cec06c53f944bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/744101956d78b7c1384d0cbf379db13e859167bf", - "reference": "744101956d78b7c1384d0cbf379db13e859167bf", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ae311b8f045ea93ce7b1c9cdb7cec06c53f944bc", + "reference": "ae311b8f045ea93ce7b1c9cdb7cec06c53f944bc", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^2.5.1", + "guzzlehttp/promises": "^2.5.2", "guzzlehttp/psr7": "^2.13", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", @@ -2365,7 +2365,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.15.2" + "source": "https://github.com/guzzle/guzzle/tree/7.15.3" }, "funding": [ { @@ -2381,20 +2381,20 @@ "type": "tidelift" } ], - "time": "2026-07-26T23:23:20+00:00" + "time": "2026-08-05T19:48:21+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.5.1", + "version": "2.5.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "9ad1e4fc607446a055b95870c7f668e93b5cff29" + "reference": "2823687acff28b2dbe67b2508a6b300e2c3fa4ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/9ad1e4fc607446a055b95870c7f668e93b5cff29", - "reference": "9ad1e4fc607446a055b95870c7f668e93b5cff29", + "url": "https://api.github.com/repos/guzzle/promises/zipball/2823687acff28b2dbe67b2508a6b300e2c3fa4ce", + "reference": "2823687acff28b2dbe67b2508a6b300e2c3fa4ce", "shasum": "" }, "require": { @@ -2449,7 +2449,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.5.1" + "source": "https://github.com/guzzle/promises/tree/2.5.2" }, "funding": [ { @@ -2465,7 +2465,7 @@ "type": "tidelift" } ], - "time": "2026-07-08T15:48:39+00:00" + "time": "2026-08-05T19:30:54+00:00" }, { "name": "guzzlehttp/psr7", @@ -2946,16 +2946,16 @@ }, { "name": "laravel/framework", - "version": "v12.64.0", + "version": "v12.65.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "727a8ea2949c23ca8b5316b86a00984b6017b7a0" + "reference": "99a8fb3153f962a323377d6742be08da86bcccb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/727a8ea2949c23ca8b5316b86a00984b6017b7a0", - "reference": "727a8ea2949c23ca8b5316b86a00984b6017b7a0", + "url": "https://api.github.com/repos/laravel/framework/zipball/99a8fb3153f962a323377d6742be08da86bcccb8", + "reference": "99a8fb3153f962a323377d6742be08da86bcccb8", "shasum": "" }, "require": { @@ -3164,7 +3164,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2026-07-14T14:25:37+00:00" + "time": "2026-08-05T15:33:16+00:00" }, { "name": "laravel/prompts", @@ -4705,24 +4705,24 @@ }, { "name": "mongodb/mongodb", - "version": "2.3.0", + "version": "2.2.0", "source": { "type": "git", - "url": "https://github.com/mongodb/mongo-php-library", - "reference": "12e56461166d915e3dd8e4969ad0940ed5207d88" + "url": "https://github.com/mongodb/mongo-php-library.git", + "reference": "bbb13f969e37e047fd822527543df55fdc1c9298" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/12e56461166d915e3dd8e4969ad0940ed5207d88", - "reference": "12e56461166d915e3dd8e4969ad0940ed5207d88", + "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/bbb13f969e37e047fd822527543df55fdc1c9298", + "reference": "bbb13f969e37e047fd822527543df55fdc1c9298", "shasum": "" }, "require": { "composer-runtime-api": "^2.0", - "ext-mongodb": "^2.3", + "ext-mongodb": "^2.2", "php": "^8.1", "psr/log": "^1.1.4|^2|^3", - "symfony/polyfill-php85": "^1.33" + "symfony/polyfill-php85": "^1.32" }, "replace": { "mongodb/builder": "*" @@ -4774,7 +4774,11 @@ "mongodb", "persistence" ], - "time": "2026-04-28T12:50:06+00:00" + "support": { + "issues": "https://github.com/mongodb/mongo-php-library/issues", + "source": "https://github.com/mongodb/mongo-php-library/tree/2.2.0" + }, + "time": "2026-02-11T11:39:56+00:00" }, { "name": "monolog/monolog", @@ -10532,7 +10536,7 @@ }, { "name": "filament/upgrade", - "version": "v5.7.5", + "version": "v5.7.6", "source": { "type": "git", "url": "https://github.com/filamentphp/upgrade.git", @@ -10834,16 +10838,16 @@ }, { "name": "laravel/pint", - "version": "v1.30.3", + "version": "v1.30.4", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "19ca6de4ce07869f61f09863e37e81562ebc0a9b" + "reference": "a96cb6eee2961905d2fce7207aefb80945bf6b28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/19ca6de4ce07869f61f09863e37e81562ebc0a9b", - "reference": "19ca6de4ce07869f61f09863e37e81562ebc0a9b", + "url": "https://api.github.com/repos/laravel/pint/zipball/a96cb6eee2961905d2fce7207aefb80945bf6b28", + "reference": "a96cb6eee2961905d2fce7207aefb80945bf6b28", "shasum": "" }, "require": { @@ -10856,11 +10860,11 @@ "require-dev": { "composer/semver": "^3.4.4", "friendsofphp/php-cs-fixer": "^3.95.18", - "illuminate/view": "^12.64.0", + "illuminate/view": "^12.65.0", "larastan/larastan": "^3.10.0", "laravel-zero/framework": "^12.1.0", "laravel/agent-detector": "^2.0.2", - "laravel/prompts": "^0.3.21", + "laravel/prompts": "^0.3.22", "mockery/mockery": "^1.6.12", "nunomaduro/termwind": "^2.4.0", "pestphp/pest": "^3.8.7" @@ -10900,7 +10904,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-08-02T01:28:21+00:00" + "time": "2026-08-05T16:47:22+00:00" }, { "name": "laravel/sail",