This commit is contained in:
salam committed 2026-03-23 17:22:39 +01:00
1 parent 550ea115f1
commit c036814366
12 files changed
+481 -18891

No files matched your search

@@ -15,8 +15,12 @@ class ListPlayers extends ListRecords
protected function getHeaderActions(): array
{
return [
CreateAction::make(),
CreateAction::make()
->label('New')
->icon('phosphor-plus'),
ImportAction::make('importPlayer')
->icon('phosphor-upload')
->label('Import')
->modalDescription('Separator comma ",", First line: "name,player_id"')
->importer(PlayerImporter::class),
];
@@ -4,7 +4,9 @@ namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Pages;
use App\Filament\Clusters\StaticData\Resources\UbEvents\UbEventResource;
use App\Filament\Imports\UbEventImporter;
use Filament\Actions\Action;
use Filament\Actions\ImportAction;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\ListRecords;
class ListUbEvents extends ListRecords
@@ -16,9 +18,26 @@ class ListUbEvents extends ListRecords
return [
ImportAction::make('importPlayer')
->icon('phosphor-upload')
->label('Events')
->modalDescription('Separator comma ";"')
->importer(UbEventImporter::class),
->label('Import')
->modalIcon('phosphor-file-csv')
->modalDescription('Separator ";"')
->modalHeading('Import events with player')
->importer(UbEventImporter::class)
->csvDelimiter(';')
->extraModalFooterActions([
Action::make('copy')
->tooltip('Copy header line')
->color('success')
->label('Copy csv header')
->action(function ($livewire) {
$livewire->js('window.navigator.clipboard.writeText("league_id;home_id;away_id;starttime;player_id;home_away;home_ft;away_ft;home_ht;away_ht;Goals;assists;tackles;total_passes;passes_done;total_duels;duels_won;total_ground_duels;ground_duels_won;total_aerial_duels;aerial_duels_won;minutes_played;shots_on_target;shots_off_target;shots_blocked;total_dribble;dribble_done;position;rating;bcm;hw;pw;pm;possession_lost;fouls;was_fouled;offsides;date_acquisition");');
Notification::make()
->title('Header copied successfully')
->success()
->send();
}),
]),
];
}
}
@@ -2,6 +2,10 @@
namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Schemas;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
class UbEventForm
@@ -10,7 +14,81 @@ class UbEventForm
{
return $schema
->components([
//
]);
Section::make('Player Team')
->schema([
Radio::make('home_away')
->hiddenLabel()
->options([
'H' => 'Home',
'A' => 'Away',
]),
TextInput::make('rating')
->numeric()
->inputMode('decimal'),
])->columns(2),
Grid::make([
'default' => 2,
'md' => 3,
'xl' => 5,
])
->schema([
TextInput::make('home_ft'),
TextInput::make('away_ft'),
TextInput::make('home_ht'),
TextInput::make('away_ht'),
TextInput::make('goals'),
TextInput::make('assists'),
TextInput::make('tackles'),
TextInput::make('total_passes'),
TextInput::make('passes_done'),
TextInput::make('total_duels'),
TextInput::make('duels_won'),
TextInput::make('total_ground_duels'),
TextInput::make('ground_duels_won'),
TextInput::make('total_aerial_duels'),
TextInput::make('aerial_duels_won'),
TextInput::make('minutes_played'),
TextInput::make('shots_on_target'),
TextInput::make('shots_off_target'),
TextInput::make('shots_blocked'),
TextInput::make('total_dribble'),
TextInput::make('dribble_done'),
TextInput::make('position'),
TextInput::make('bcm'),
TextInput::make('hw'),
TextInput::make('pw'),
TextInput::make('pm'),
TextInput::make('possession_lost'),
TextInput::make('fouls'),
TextInput::make('was_fouled'),
TextInput::make('offsides'),
]),
])->columns(1);
}
}
// 'total_passes',
// 'passes_done',
// 'total_duels',
// 'duels_won',
// 'total_ground_duels',
// 'ground_duels_won',
// 'total_aerial_duels',
// 'aerial_duels_won',
// 'minutes_played',
// 'shots_on_target',
// 'shots_off_target',
// 'shots_blocked',
// 'total_dribble',
// 'dribble_done',
// 'position',
// 'rating',
// 'bcm',
// 'hw',
// 'pw',
// 'pm',
// 'possession_lost',
// 'fouls',
// 'was_fouled',
// 'offsides',
// 'date_acquisition',
@@ -5,27 +5,65 @@ namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Tables;
use Filament\Actions\BulkActionGroup;
use Filament\Actions\DeleteBulkAction;
use Filament\Actions\EditAction;
use Filament\Forms\Components\DatePicker;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Enums\FiltersLayout;
use Filament\Tables\Filters\Filter;
use Filament\Tables\Filters\Indicator;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Carbon;
class UbEventsTable
{
public static function configure(Table $table): Table
{
return $table
->poll('10sec')
->columns([
// TextColumn::make('league_id')->searchable(),
TextColumn::make('starttime')->dateTime('d. M. Y')->label('Date'),
TextColumn::make('league.name')->searchable(),
// TextColumn::make('home_id')->searchable(),
// TextColumn::make('away_id')->searchable(),
TextColumn::make('home.name')->searchable(),
TextColumn::make('away.name')->searchable(),
TextColumn::make('player_id')->searchable(),
TextColumn::make('player.name')->searchable(),
TextColumn::make('starttime')->dateTime('d. M. Y')->label('Date'),
TextColumn::make('rating'),
])
->filters([
//
])
Filter::make('created_at')
->columns(2)->columnSpanFull()
->schema([
DatePicker::make('from'),
DatePicker::make('until'),
])
->query(function (Builder $query, array $data): Builder {
return $query
->when(
$data['from'],
fn (Builder $query, $date): Builder => $query->whereDate('starttime', '>=', $date),
)
->when(
$data['until'],
fn (Builder $query, $date): Builder => $query->whereDate('starttime', '<=', $date),
);
})
->indicateUsing(function (array $data): array {
$indicators = [];
if ($data['from'] ?? null) {
$indicators[] = Indicator::make('Starttime from '.Carbon::parse($data['from'])->toFormattedDateString())
->removeField('from');
}
if ($data['until'] ?? null) {
$indicators[] = Indicator::make('Starttime until '.Carbon::parse($data['until'])->toFormattedDateString())
->removeField('until');
}
return $indicators;
}),
], layout: FiltersLayout::AboveContent)
->deferFilters(false)
->recordActions([
EditAction::make(),
])
@@ -11,6 +11,7 @@ use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
use Illuminate\Contracts\Support\Htmlable;
class UbEventResource extends Resource
{
@@ -18,11 +19,16 @@ class UbEventResource extends Resource
protected static string|BackedEnum|null $navigationIcon = 'icon-soccerball';
protected static ?string $navigationLabel = 'Events';
protected static ?string $navigationLabel = 'Events & Player';
protected static ?string $cluster = StaticDataCluster::class;
protected static ?string $recordTitleAttribute = 'league_id';
// protected static ?string $recordTitleAttribute = 'league_id';
public static function getRecordTitle($record): string|null|Htmlable
{
return ': '.$record->starttime->format('d. M. Y').' - '.$record->league->name.' - '.$record->home->name.' vs '.$record->away->name.' - '.$record->player->name;
}
public static function form(Schema $schema): Schema
{
+60 -375
View File
@@ -13,397 +13,82 @@ class UbEventImporter extends Importer
{
protected static ?string $model = UbEvent::class;
public function resolveRecord(): UbEvent
{
$res = UbEvent::query()
->where('league_id', $this->data['league_id'])
->where('home_id', $this->data['home_id'])
->where('away_id', $this->data['away_id'])
->where('player_id', $this->data['player_id'])
->where('starttime', $this->data['starttime'])
->first();
if ($res) {
return UbEvent::find($res->id);
} else {
return new UbEvent;
}
}
public static function getColumns(): array
{
return [
ImportColumn::make('league_id')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('home_id')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('away_id')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('player_id')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('league_id')->numeric(),
ImportColumn::make('home_id')->numeric(),
ImportColumn::make('away_id')->numeric(),
ImportColumn::make('player_id')->numeric(),
ImportColumn::make('starttime')
->castStateUsing(function ($state) {
$state = Carbon::parse($state)->format('Y-m-d h:i:s');
return $state;
})
->requiredMapping(),
return Carbon::parse($state);
}),
ImportColumn::make('home_away')
->castStateUsing(function (string $state): ?string {
if (blank($state)) {
return null;
}
return (string) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('home_ft')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('away_ft')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('home_ht')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('away_ht')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('goals')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('assists')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('tackles')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('total_passes')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('passes_done')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('total_duels')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('duels_won')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('total_ground_duels')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('ground_duels_won')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('total_aerial_duels')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('aerial_duels_won')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('minutes_played')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('shots_on_target')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('shots_off_target')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('shots_blocked')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('total_dribble')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('dribble_done')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
return (string) trim($state);
}),
ImportColumn::make('home_ft')->numeric(),
ImportColumn::make('away_ft')->numeric(),
ImportColumn::make('home_ht')->numeric(),
ImportColumn::make('away_ht')->numeric(),
ImportColumn::make('goals')->numeric(),
ImportColumn::make('assists')->numeric(),
ImportColumn::make('tackles')->numeric(),
ImportColumn::make('total_passes')->numeric(),
ImportColumn::make('passes_done')->numeric(),
ImportColumn::make('total_duels')->numeric(),
ImportColumn::make('duels_won')->numeric(),
ImportColumn::make('total_ground_duels')->numeric(),
ImportColumn::make('ground_duels_won')->numeric(),
ImportColumn::make('total_aerial_duels')->numeric(),
ImportColumn::make('aerial_duels_won')->numeric(),
ImportColumn::make('minutes_played')->numeric(),
ImportColumn::make('shots_on_target')->numeric(),
ImportColumn::make('shots_off_target')->numeric(),
ImportColumn::make('shots_blocked')->numeric(),
ImportColumn::make('total_dribble')->numeric(),
ImportColumn::make('dribble_done')->numeric(),
ImportColumn::make('position')
->castStateUsing(function (string $state): ?string {
if (blank($state)) {
return null;
}
return (string) $state;
})
->requiredMapping()
->numeric(),
return (string) trim($state);
}),
ImportColumn::make('rating')
->numeric(10)
->castStateUsing(function (string $state): ?float {
if (blank($state)) {
return null;
}
return (float) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('bcm')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('hw')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('pw')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('pm')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('possession_lost')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('fouls')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('was_fouled')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
ImportColumn::make('offsides')
->castStateUsing(function (string $state): ?int {
if (blank($state)) {
return null;
}
return (int) $state;
})
->requiredMapping()
->numeric(),
return (float) str_replace(',', '.', $state) * 1.0;
}),
ImportColumn::make('bcm')->numeric(),
ImportColumn::make('hw')->numeric(),
ImportColumn::make('pw')->numeric(),
ImportColumn::make('pm')->numeric(),
ImportColumn::make('possession_lost')->numeric(),
ImportColumn::make('fouls')->numeric(),
ImportColumn::make('was_fouled')->numeric(),
ImportColumn::make('offsides')->numeric(),
ImportColumn::make('date_acquisition')
->castStateUsing(function ($state) {
$state = Carbon::parse($state)->format('Y-m-d h:i:s');
return $state;
})
->requiredMapping(),
return Carbon::parse($state);
}),
];
}
public function resolveRecord(): UbEvent
{
return UbEvent::firstOrNew([
'league_id' => (int) $this->data['league_id'],
'home_id,' => (int) $this->data['home_id'],
'player_id' => (int) $this->data['player_id'],
'away_id,' => (int) $this->data['away_id'],
'starttime' => Carbon::parse(strtotime($this->data['starttime'])),
]);
}
public static function getCompletedNotificationBody(Import $import): string
{
$body = 'Your ub event import has completed and '.Number::format($import->successful_rows).' '.str('row')->plural($import->successful_rows).' imported.';
+39 -3
View File
@@ -11,7 +11,7 @@ class UbEvent extends Model
{
protected $connection = 'mongodb';
protected $table = 'up_events';
protected $table = 'events';
protected $fillable = [
'league_id',
@@ -57,8 +57,44 @@ class UbEvent extends Model
protected function casts(): array
{
return [
'starttime' => 'datetime',
'date_acquisition' => 'datetime',
'league_id' => 'integer',
'home_id' => 'integer',
'away_id' => 'integer',
'player_id' => 'integer',
'starttime' => 'date',
'date_acquisition' => 'date',
'rating' => 'decimal:10',
'home_away' => 'string',
'home_ft' => 'integer',
'away_ft' => 'integer',
'home_ht' => 'integer',
'away_ht' => 'integer',
'goals' => 'integer',
'assists' => 'integer',
'tackles' => 'integer',
'total_passes' => 'integer',
'passes_done' => 'integer',
'total_duels' => 'integer',
'duels_won' => 'integer',
'total_ground_duels' => 'integer',
'ground_duels_won' => 'integer',
'total_aerial_duels' => 'integer',
'aerial_duels_won' => 'integer',
'minutes_played' => 'integer',
'shots_on_target' => 'integer',
'shots_off_target' => 'integer',
'shots_blocked' => 'integer',
'total_dribble' => 'integer',
'dribble_done' => 'integer',
'position' => 'integer',
'bcm' => 'integer',
'hw' => 'integer',
'pw' => 'integer',
'pm' => 'integer',
'possession_lost' => 'integer',
'fouls' => 'integer',
'was_fouled' => 'integer',
'offsides' => 'integer',
];
}
Generated
+198 -185
View File
@@ -2954,20 +2954,20 @@
},
{
"name": "laravel/framework",
"version": "v11.50.0",
"version": "v12.55.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "c761f591209b45f56c1317ecbff0b04c89cf7ba2"
"reference": "6d9185a248d101b07eecaf8fd60b18129545fd33"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/c761f591209b45f56c1317ecbff0b04c89cf7ba2",
"reference": "c761f591209b45f56c1317ecbff0b04c89cf7ba2",
"url": "https://api.github.com/repos/laravel/framework/zipball/6d9185a248d101b07eecaf8fd60b18129545fd33",
"reference": "6d9185a248d101b07eecaf8fd60b18129545fd33",
"shasum": ""
},
"require": {
"brick/math": "^0.9.3|^0.10.2|^0.11|^0.12|^0.13|^0.14",
"brick/math": "^0.11|^0.12|^0.13|^0.14",
"composer-runtime-api": "^2.2",
"doctrine/inflector": "^2.0.5",
"dragonmantank/cron-expression": "^3.4",
@@ -2982,32 +2982,34 @@
"fruitcake/php-cors": "^1.3",
"guzzlehttp/guzzle": "^7.8.2",
"guzzlehttp/uri-template": "^1.0",
"laravel/prompts": "^0.1.18|^0.2.0|^0.3.0",
"laravel/prompts": "^0.3.0",
"laravel/serializable-closure": "^1.3|^2.0",
"league/commonmark": "^2.7",
"league/commonmark": "^2.8.1",
"league/flysystem": "^3.25.1",
"league/flysystem-local": "^3.25.1",
"league/uri": "^7.5.1",
"monolog/monolog": "^3.0",
"nesbot/carbon": "^2.72.6|^3.8.4",
"nesbot/carbon": "^3.8.4",
"nunomaduro/termwind": "^2.0",
"php": "^8.2",
"psr/container": "^1.1.1|^2.0.1",
"psr/log": "^1.0|^2.0|^3.0",
"psr/simple-cache": "^1.0|^2.0|^3.0",
"ramsey/uuid": "^4.7",
"symfony/console": "^7.0.3",
"symfony/error-handler": "^7.0.3",
"symfony/finder": "^7.0.3",
"symfony/console": "^7.2.0",
"symfony/error-handler": "^7.2.0",
"symfony/finder": "^7.2.0",
"symfony/http-foundation": "^7.2.0",
"symfony/http-kernel": "^7.0.3",
"symfony/mailer": "^7.0.3",
"symfony/mime": "^7.0.3",
"symfony/polyfill-php83": "^1.31",
"symfony/process": "^7.0.3",
"symfony/routing": "^7.0.3",
"symfony/uid": "^7.0.3",
"symfony/var-dumper": "^7.0.3",
"symfony/http-kernel": "^7.2.0",
"symfony/mailer": "^7.2.0",
"symfony/mime": "^7.2.0",
"symfony/polyfill-php83": "^1.33",
"symfony/polyfill-php84": "^1.33",
"symfony/polyfill-php85": "^1.33",
"symfony/process": "^7.2.0",
"symfony/routing": "^7.2.0",
"symfony/uid": "^7.2.0",
"symfony/var-dumper": "^7.2.0",
"tijsverkoyen/css-to-inline-styles": "^2.2.5",
"vlucas/phpdotenv": "^5.6.1",
"voku/portable-ascii": "^2.0.2"
@@ -3039,6 +3041,7 @@
"illuminate/filesystem": "self.version",
"illuminate/hashing": "self.version",
"illuminate/http": "self.version",
"illuminate/json-schema": "self.version",
"illuminate/log": "self.version",
"illuminate/macroable": "self.version",
"illuminate/mail": "self.version",
@@ -3048,6 +3051,7 @@
"illuminate/process": "self.version",
"illuminate/queue": "self.version",
"illuminate/redis": "self.version",
"illuminate/reflection": "self.version",
"illuminate/routing": "self.version",
"illuminate/session": "self.version",
"illuminate/support": "self.version",
@@ -3071,17 +3075,18 @@
"league/flysystem-read-only": "^3.25.1",
"league/flysystem-sftp-v3": "^3.25.1",
"mockery/mockery": "^1.6.10",
"orchestra/testbench-core": "^9.18.0",
"pda/pheanstalk": "^5.0.6",
"opis/json-schema": "^2.4.1",
"orchestra/testbench-core": "^10.9.0",
"pda/pheanstalk": "^5.0.6|^7.0.0",
"php-http/discovery": "^1.15",
"phpstan/phpstan": "2.1.41",
"phpunit/phpunit": "^10.5.35|^11.3.6|^12.0.1",
"predis/predis": "^2.3",
"resend/resend-php": "^0.10.0",
"symfony/cache": "^7.0.3",
"symfony/http-client": "^7.0.3",
"symfony/psr-http-message-bridge": "^7.0.3",
"symfony/translation": "^7.0.3"
"phpstan/phpstan": "^2.1.41",
"phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1",
"predis/predis": "^2.3|^3.0",
"resend/resend-php": "^0.10.0|^1.0",
"symfony/cache": "^7.2.0",
"symfony/http-client": "^7.2.0",
"symfony/psr-http-message-bridge": "^7.2.0",
"symfony/translation": "^7.2.0"
},
"suggest": {
"ably/ably-php": "Required to use the Ably broadcast driver (^1.0).",
@@ -3096,7 +3101,7 @@
"ext-pdo": "Required to use all database features.",
"ext-posix": "Required to use all features of the queue worker.",
"ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0|^6.0).",
"fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).",
"fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).",
"filp/whoops": "Required for friendly error pages in development (^2.14.3).",
"laravel/tinker": "Required to use the tinker console command (^2.0).",
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).",
@@ -3107,22 +3112,22 @@
"mockery/mockery": "Required to use mocking (^1.6).",
"pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).",
"php-http/discovery": "Required to use PSR-7 bridging features (^1.15).",
"phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.3.6|^12.0.1).",
"predis/predis": "Required to use the predis connector (^2.3).",
"phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.5.3|^12.0.1).",
"predis/predis": "Required to use the predis connector (^2.3|^3.0).",
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).",
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).",
"resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0).",
"symfony/cache": "Required to PSR-6 cache bridge (^7.0).",
"symfony/filesystem": "Required to enable support for relative symbolic links (^7.0).",
"symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.0).",
"symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.0).",
"symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.0).",
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.0)."
"resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0|^1.0).",
"symfony/cache": "Required to PSR-6 cache bridge (^7.2).",
"symfony/filesystem": "Required to enable support for relative symbolic links (^7.2).",
"symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.2).",
"symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.2).",
"symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.2).",
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.2)."
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "11.x-dev"
"dev-master": "12.x-dev"
}
},
"autoload": {
@@ -3133,6 +3138,7 @@
"src/Illuminate/Filesystem/functions.php",
"src/Illuminate/Foundation/helpers.php",
"src/Illuminate/Log/functions.php",
"src/Illuminate/Reflection/helpers.php",
"src/Illuminate/Support/functions.php",
"src/Illuminate/Support/helpers.php"
],
@@ -3141,7 +3147,8 @@
"Illuminate\\Support\\": [
"src/Illuminate/Macroable/",
"src/Illuminate/Collections/",
"src/Illuminate/Conditionable/"
"src/Illuminate/Conditionable/",
"src/Illuminate/Reflection/"
]
}
},
@@ -3165,7 +3172,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2026-03-17T19:35:22+00:00"
"time": "2026-03-18T14:28:59+00:00"
},
{
"name": "laravel/prompts",
@@ -4412,27 +4419,27 @@
},
{
"name": "mongodb/laravel-mongodb",
"version": "5.1.1",
"version": "5.7.0",
"source": {
"type": "git",
"url": "https://github.com/mongodb/laravel-mongodb.git",
"reference": "cc7e5ffd0e8e3a9acfebd7aa5a5aabac2fc5eac4"
"url": "https://github.com/mongodb/laravel-mongodb",
"reference": "0071a45e79741f316f9b8e3a0372c8881ba5f81f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mongodb/laravel-mongodb/zipball/cc7e5ffd0e8e3a9acfebd7aa5a5aabac2fc5eac4",
"reference": "cc7e5ffd0e8e3a9acfebd7aa5a5aabac2fc5eac4",
"url": "https://api.github.com/repos/mongodb/laravel-mongodb/zipball/0071a45e79741f316f9b8e3a0372c8881ba5f81f",
"reference": "0071a45e79741f316f9b8e3a0372c8881ba5f81f",
"shasum": ""
},
"require": {
"composer-runtime-api": "^2.0.0",
"ext-mongodb": "^1.15",
"illuminate/cache": "^10.36|^11",
"illuminate/container": "^10.0|^11",
"illuminate/database": "^10.30|^11",
"illuminate/events": "^10.0|^11",
"illuminate/support": "^10.0|^11",
"mongodb/mongodb": "^1.18",
"ext-mongodb": "^1.21|^2",
"illuminate/cache": "^10.36|^11|^12|^13.0",
"illuminate/container": "^10.0|^11|^12|^13.0",
"illuminate/database": "^10.30|^11|^12|^13.0",
"illuminate/events": "^10.0|^11|^12|^13.0",
"illuminate/support": "^10.0|^11|^12|^13.0",
"mongodb/mongodb": "^1.21|^2",
"php": "^8.1"
},
"conflict": {
@@ -4442,20 +4449,19 @@
"jenssegers/mongodb": "self.version"
},
"require-dev": {
"doctrine/coding-standard": "12.0.x-dev",
"doctrine/coding-standard": "^12.0",
"laravel/scout": "^10.3",
"league/flysystem-gridfs": "^3.28",
"league/flysystem-read-only": "^3.0",
"mockery/mockery": "^1.4.4",
"mongodb/builder": "^0.2",
"orchestra/testbench": "^8.0|^9.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.3",
"rector/rector": "^1.2",
"spatie/laravel-query-builder": "^5.6"
"orchestra/testbench": "^8.0|^9.0|^10.0|^11.0",
"phpstan/phpstan": "^1.10|^2.1",
"phpunit/phpunit": "^10.3|^11.5.3|^12.5.12",
"rector/rector": "^1.2|^2.3",
"spatie/laravel-query-builder": "^5.6|^6"
},
"suggest": {
"league/flysystem-gridfs": "Filesystem storage in MongoDB with GridFS",
"mongodb/builder": "Provides a fluent aggregation builder for MongoDB pipelines"
"league/flysystem-gridfs": "Filesystem storage in MongoDB with GridFS"
},
"type": "library",
"extra": {
@@ -4481,6 +4487,11 @@
"email": "andreas.braun@mongodb.com",
"role": "Leader"
},
{
"name": "Pauline Vos",
"email": "pauline.vos@mongodb.com",
"role": "Maintainer"
},
{
"name": "Jérôme Tamarelle",
"email": "jerome.tamarelle@mongodb.com",
@@ -4509,41 +4520,40 @@
],
"support": {
"issues": "https://www.mongodb.com/support",
"security": "https://www.mongodb.com/security",
"source": "https://github.com/mongodb/laravel-mongodb/tree/5.1.1"
"security": "https://www.mongodb.com/security"
},
"time": "2025-01-06T09:22:28+00:00"
"time": "2026-03-20T12:20:25+00:00"
},
{
"name": "mongodb/mongodb",
"version": "1.20.0",
"version": "2.2.0",
"source": {
"type": "git",
"url": "https://github.com/mongodb/mongo-php-library.git",
"reference": "75da9ea3b63d97b05e0e8648d8c09a17bc54c0b6"
"reference": "bbb13f969e37e047fd822527543df55fdc1c9298"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/75da9ea3b63d97b05e0e8648d8c09a17bc54c0b6",
"reference": "75da9ea3b63d97b05e0e8648d8c09a17bc54c0b6",
"url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/bbb13f969e37e047fd822527543df55fdc1c9298",
"reference": "bbb13f969e37e047fd822527543df55fdc1c9298",
"shasum": ""
},
"require": {
"composer-runtime-api": "^2.0",
"ext-hash": "*",
"ext-json": "*",
"ext-mongodb": "^1.20.0",
"php": "^7.4 || ^8.0",
"ext-mongodb": "^2.2",
"php": "^8.1",
"psr/log": "^1.1.4|^2|^3",
"symfony/polyfill-php80": "^1.27",
"symfony/polyfill-php81": "^1.27"
"symfony/polyfill-php85": "^1.32"
},
"replace": {
"mongodb/builder": "*"
},
"require-dev": {
"doctrine/coding-standard": "^12.0",
"rector/rector": "^1.1",
"phpunit/phpunit": "^10.5.35",
"rector/rector": "^2.3.4",
"squizlabs/php_codesniffer": "^3.7",
"symfony/phpunit-bridge": "^5.2",
"vimeo/psalm": "^5.13"
"vimeo/psalm": "~6.14.2"
},
"type": "library",
"extra": {
@@ -4587,9 +4597,9 @@
],
"support": {
"issues": "https://github.com/mongodb/mongo-php-library/issues",
"source": "https://github.com/mongodb/mongo-php-library/tree/1.20.0"
"source": "https://github.com/mongodb/mongo-php-library/tree/2.2.0"
},
"time": "2024-09-25T12:54:08+00:00"
"time": "2026-02-11T11:39:56+00:00"
},
{
"name": "monolog/monolog",
@@ -6015,16 +6025,16 @@
},
{
"name": "psy/psysh",
"version": "v0.12.21",
"version": "v0.12.22",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "4821fab5b7cd8c49a673a9fd5754dc9162bb9e97"
"reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/4821fab5b7cd8c49a673a9fd5754dc9162bb9e97",
"reference": "4821fab5b7cd8c49a673a9fd5754dc9162bb9e97",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/3be75d5b9244936dd4ac62ade2bfb004d13acf0f",
"reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f",
"shasum": ""
},
"require": {
@@ -6088,9 +6098,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.12.21"
"source": "https://github.com/bobthecow/psysh/tree/v0.12.22"
},
"time": "2026-03-06T21:21:28+00:00"
"time": "2026-03-22T23:03:24+00:00"
},
{
"name": "ralouphie/getallheaders",
@@ -6490,31 +6500,34 @@
},
{
"name": "spatie/laravel-permission",
"version": "6.25.0",
"version": "7.2.2",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-permission.git",
"reference": "d7d4cb0d58616722f1afc90e0484e4825155b9b3"
"reference": "4b2572eb5ef2c8cb719df09e0e6feb7431fda93f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-permission/zipball/d7d4cb0d58616722f1afc90e0484e4825155b9b3",
"reference": "d7d4cb0d58616722f1afc90e0484e4825155b9b3",
"url": "https://api.github.com/repos/spatie/laravel-permission/zipball/4b2572eb5ef2c8cb719df09e0e6feb7431fda93f",
"reference": "4b2572eb5ef2c8cb719df09e0e6feb7431fda93f",
"shasum": ""
},
"require": {
"illuminate/auth": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0",
"illuminate/container": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0",
"illuminate/contracts": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0",
"illuminate/database": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0",
"php": "^8.0"
"illuminate/auth": "^12.0|^13.0",
"illuminate/container": "^12.0|^13.0",
"illuminate/contracts": "^12.0|^13.0",
"illuminate/database": "^12.0|^13.0",
"php": "^8.3",
"spatie/laravel-package-tools": "^1.0"
},
"require-dev": {
"laravel/passport": "^11.0|^12.0|^13.0",
"larastan/larastan": "^3.9",
"laravel/passport": "^13.0",
"laravel/pint": "^1.0",
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0|^11.0",
"pestphp/pest": "^2.0|^3.0|^4.0",
"pestphp/pest-plugin-laravel": "^2.0|^3.0|^4.0"
"orchestra/testbench": "^10.0|^11.0",
"pestphp/pest": "^3.0|^4.0",
"pestphp/pest-plugin-laravel": "^3.0|^4.1",
"phpstan/phpstan": "^2.1"
},
"type": "library",
"extra": {
@@ -6524,8 +6537,8 @@
]
},
"branch-alias": {
"dev-main": "6.x-dev",
"dev-master": "6.x-dev"
"dev-main": "7.x-dev",
"dev-master": "7.x-dev"
}
},
"autoload": {
@@ -6548,7 +6561,7 @@
"role": "Developer"
}
],
"description": "Permission handling for Laravel 8.0 and up",
"description": "Permission handling for Laravel 12 and up",
"homepage": "https://github.com/spatie/laravel-permission",
"keywords": [
"acl",
@@ -6562,7 +6575,7 @@
],
"support": {
"issues": "https://github.com/spatie/laravel-permission/issues",
"source": "https://github.com/spatie/laravel-permission/tree/6.25.0"
"source": "https://github.com/spatie/laravel-permission/tree/7.2.2"
},
"funding": [
{
@@ -6570,7 +6583,7 @@
"type": "github"
}
],
"time": "2026-03-17T22:46:46+00:00"
"time": "2026-02-22T08:20:44+00:00"
},
{
"name": "spatie/shiki-php",
@@ -8359,86 +8372,6 @@
],
"time": "2025-01-02T08:10:11+00:00"
},
{
"name": "symfony/polyfill-php81",
"version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php81.git",
"reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
"reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
"shasum": ""
},
"require": {
"php": ">=7.2"
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/polyfill",
"name": "symfony/polyfill"
}
},
"autoload": {
"files": [
"bootstrap.php"
],
"psr-4": {
"Symfony\\Polyfill\\Php81\\": ""
},
"classmap": [
"Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php81/tree/v1.33.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://github.com/nicolas-grekas",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2024-09-09T11:45:10+00:00"
},
{
"name": "symfony/polyfill-php83",
"version": "v1.33.0",
@@ -8519,6 +8452,86 @@
],
"time": "2025-07-08T02:45:35+00:00"
},
{
"name": "symfony/polyfill-php84",
"version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php84.git",
"reference": "d8ced4d875142b6a7426000426b8abc631d6b191"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191",
"reference": "d8ced4d875142b6a7426000426b8abc631d6b191",
"shasum": ""
},
"require": {
"php": ">=7.2"
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/polyfill",
"name": "symfony/polyfill"
}
},
"autoload": {
"files": [
"bootstrap.php"
],
"psr-4": {
"Symfony\\Polyfill\\Php84\\": ""
},
"classmap": [
"Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://github.com/nicolas-grekas",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2025-06-24T13:30:11+00:00"
},
{
"name": "symfony/polyfill-php85",
"version": "v1.33.0",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+10
View File
@@ -139,6 +139,15 @@ case "$1" in
php artisan nuh --d --f 18
php artisan nuh --d --f 19
;;
"12")
echo ""
echo "clear queue and restart"
echo ""
php artisan queue:clear
php artisan queue:restart
php artisan optimize
;;
*)
echo ""
echo "--------------------------"
@@ -155,6 +164,7 @@ case "$1" in
echo "9 => a load today soccer, NO proxy"
echo "10 => a load today soccer, WITH proxy"
echo "11 => a load all sport no date limit, NO proxy"
echo "12 => clear queue and restart"
echo "--------------------------"
echo ""
;;