wip mango
This commit is contained in:
1 parent
df60d37f3a
commit
ad7925bbba
19 files changed
+19040
-138
No files matched your search
@@ -17,7 +17,7 @@ class PlayersTable
|
|||||||
Stack::make([
|
Stack::make([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name')
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('player_id')
|
TextColumn::make('id')
|
||||||
->badge()
|
->badge()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
]),
|
]),
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Pages;
|
||||||
|
|
||||||
|
use App\Filament\Clusters\StaticData\Resources\UbEvents\UbEventResource;
|
||||||
|
use Filament\Resources\Pages\CreateRecord;
|
||||||
|
|
||||||
|
class CreateUbEvent extends CreateRecord
|
||||||
|
{
|
||||||
|
protected static string $resource = UbEventResource::class;
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Pages;
|
||||||
|
|
||||||
|
use App\Filament\Clusters\StaticData\Resources\UbEvents\UbEventResource;
|
||||||
|
use Filament\Actions\DeleteAction;
|
||||||
|
use Filament\Resources\Pages\EditRecord;
|
||||||
|
|
||||||
|
class EditUbEvent extends EditRecord
|
||||||
|
{
|
||||||
|
protected static string $resource = UbEventResource::class;
|
||||||
|
|
||||||
|
protected function getHeaderActions(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
DeleteAction::make(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Pages;
|
||||||
|
|
||||||
|
use App\Filament\Clusters\StaticData\Resources\UbEvents\UbEventResource;
|
||||||
|
use App\Filament\Imports\UbEventImporter;
|
||||||
|
use Filament\Actions\ImportAction;
|
||||||
|
use Filament\Resources\Pages\ListRecords;
|
||||||
|
|
||||||
|
class ListUbEvents extends ListRecords
|
||||||
|
{
|
||||||
|
protected static string $resource = UbEventResource::class;
|
||||||
|
|
||||||
|
protected function getHeaderActions(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
ImportAction::make('importPlayer')
|
||||||
|
->icon('phosphor-upload')
|
||||||
|
->label('Events')
|
||||||
|
->modalDescription('Separator comma ";"')
|
||||||
|
->importer(UbEventImporter::class),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Schemas;
|
||||||
|
|
||||||
|
use Filament\Schemas\Schema;
|
||||||
|
|
||||||
|
class UbEventForm
|
||||||
|
{
|
||||||
|
public static function configure(Schema $schema): Schema
|
||||||
|
{
|
||||||
|
return $schema
|
||||||
|
->components([
|
||||||
|
//
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Clusters\StaticData\Resources\UbEvents\Tables;
|
||||||
|
|
||||||
|
use Filament\Actions\BulkActionGroup;
|
||||||
|
use Filament\Actions\DeleteBulkAction;
|
||||||
|
use Filament\Actions\EditAction;
|
||||||
|
use Filament\Tables\Columns\TextColumn;
|
||||||
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
|
class UbEventsTable
|
||||||
|
{
|
||||||
|
public static function configure(Table $table): Table
|
||||||
|
{
|
||||||
|
return $table
|
||||||
|
->columns([
|
||||||
|
// TextColumn::make('league_id')->searchable(),
|
||||||
|
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.name')->searchable(),
|
||||||
|
TextColumn::make('starttime')->dateTime('d. M. Y')->label('Date'),
|
||||||
|
])
|
||||||
|
->filters([
|
||||||
|
//
|
||||||
|
])
|
||||||
|
->recordActions([
|
||||||
|
EditAction::make(),
|
||||||
|
])
|
||||||
|
->toolbarActions([
|
||||||
|
BulkActionGroup::make([
|
||||||
|
DeleteBulkAction::make(),
|
||||||
|
]),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Clusters\StaticData\Resources\UbEvents;
|
||||||
|
|
||||||
|
use App\Filament\Clusters\StaticData\Resources\UbEvents\Pages\ListUbEvents;
|
||||||
|
use App\Filament\Clusters\StaticData\Resources\UbEvents\Schemas\UbEventForm;
|
||||||
|
use App\Filament\Clusters\StaticData\Resources\UbEvents\Tables\UbEventsTable;
|
||||||
|
use App\Filament\Clusters\StaticData\StaticDataCluster;
|
||||||
|
use App\Models\UbEvent;
|
||||||
|
use BackedEnum;
|
||||||
|
use Filament\Resources\Resource;
|
||||||
|
use Filament\Schemas\Schema;
|
||||||
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
|
class UbEventResource extends Resource
|
||||||
|
{
|
||||||
|
protected static ?string $model = UbEvent::class;
|
||||||
|
|
||||||
|
protected static string|BackedEnum|null $navigationIcon = 'icon-soccerball';
|
||||||
|
|
||||||
|
protected static ?string $navigationLabel = 'Events';
|
||||||
|
|
||||||
|
protected static ?string $cluster = StaticDataCluster::class;
|
||||||
|
|
||||||
|
protected static ?string $recordTitleAttribute = 'league_id';
|
||||||
|
|
||||||
|
public static function form(Schema $schema): Schema
|
||||||
|
{
|
||||||
|
return UbEventForm::configure($schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function table(Table $table): Table
|
||||||
|
{
|
||||||
|
return UbEventsTable::configure($table);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getPages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'index' => ListUbEvents::route('/'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getNavigationBadge(): ?string
|
||||||
|
{
|
||||||
|
return parent::getEloquentQuery()->count();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@ class PlayerImporter extends Importer
|
|||||||
public static function getColumns(): array
|
public static function getColumns(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
ImportColumn::make('player_id')
|
ImportColumn::make('id')
|
||||||
->castStateUsing(function (string $state): ?int {
|
->castStateUsing(function (string $state): ?int {
|
||||||
if (blank($state)) {
|
if (blank($state)) {
|
||||||
return null;
|
return null;
|
||||||
@@ -43,7 +43,7 @@ class PlayerImporter extends Importer
|
|||||||
public function resolveRecord(): Player
|
public function resolveRecord(): Player
|
||||||
{
|
{
|
||||||
return Player::firstOrNew([
|
return Player::firstOrNew([
|
||||||
'player_id' => (int) $this->data['player_id'],
|
'id' => (int) $this->data['id'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,417 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Imports;
|
||||||
|
|
||||||
|
use App\Models\UbEvent;
|
||||||
|
use Filament\Actions\Imports\ImportColumn;
|
||||||
|
use Filament\Actions\Imports\Importer;
|
||||||
|
use Filament\Actions\Imports\Models\Import;
|
||||||
|
use Illuminate\Support\Carbon;
|
||||||
|
use Illuminate\Support\Number;
|
||||||
|
|
||||||
|
class UbEventImporter extends Importer
|
||||||
|
{
|
||||||
|
protected static ?string $model = UbEvent::class;
|
||||||
|
|
||||||
|
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('starttime')
|
||||||
|
->castStateUsing(function ($state) {
|
||||||
|
$state = Carbon::parse($state)->format('Y-m-d h:i:s');
|
||||||
|
|
||||||
|
return $state;
|
||||||
|
})
|
||||||
|
->requiredMapping(),
|
||||||
|
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(),
|
||||||
|
ImportColumn::make('position')
|
||||||
|
->castStateUsing(function (string $state): ?string {
|
||||||
|
if (blank($state)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (string) $state;
|
||||||
|
})
|
||||||
|
->requiredMapping()
|
||||||
|
->numeric(),
|
||||||
|
ImportColumn::make('rating')
|
||||||
|
->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(),
|
||||||
|
ImportColumn::make('date_acquisition')
|
||||||
|
->castStateUsing(function ($state) {
|
||||||
|
$state = Carbon::parse($state)->format('Y-m-d h:i:s');
|
||||||
|
|
||||||
|
return $state;
|
||||||
|
})
|
||||||
|
->requiredMapping(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
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.';
|
||||||
|
|
||||||
|
if ($failedRowsCount = $import->getFailedRowsCount()) {
|
||||||
|
$body .= ' '.Number::format($failedRowsCount).' '.str('row')->plural($failedRowsCount).' failed to import.';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $body;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,9 +3,14 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use MongoDB\Laravel\Eloquent\HybridRelations;
|
||||||
|
|
||||||
class CompetitionGroup extends Model
|
class CompetitionGroup extends Model
|
||||||
{
|
{
|
||||||
|
use HybridRelations;
|
||||||
|
|
||||||
|
protected $connection = 'mariadb';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'id',
|
'id',
|
||||||
'name',
|
'name',
|
||||||
|
|||||||
@@ -3,9 +3,14 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use MongoDB\Laravel\Eloquent\HybridRelations;
|
||||||
|
|
||||||
class Element extends Model
|
class Element extends Model
|
||||||
{
|
{
|
||||||
|
use HybridRelations;
|
||||||
|
|
||||||
|
protected $connection = 'mariadb';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'id',
|
'id',
|
||||||
'name',
|
'name',
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use MongoDB\Laravel\Eloquent\HybridRelations;
|
||||||
|
|
||||||
class Player extends Model
|
class Player extends Model
|
||||||
{
|
{
|
||||||
|
use HybridRelations;
|
||||||
|
|
||||||
|
protected $connection = 'mariadb';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'id',
|
'id',
|
||||||
'name',
|
'name',
|
||||||
|
'birthday',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
+65
-56
@@ -1,75 +1,84 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
use MongoDB\Laravel\Eloquent\Model;
|
use MongoDB\Laravel\Eloquent\Model;
|
||||||
|
|
||||||
class UbEvent extends Model
|
class UbEvent extends Model
|
||||||
{
|
{
|
||||||
protected $connection = 'mongodb';
|
protected $connection = 'mongodb';
|
||||||
|
|
||||||
|
protected $table = 'up_events';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name',
|
'league_id',
|
||||||
'gravitational_force',
|
'home_id',
|
||||||
'diameter',
|
'away_id',
|
||||||
'moons',
|
'player_id',
|
||||||
|
'starttime',
|
||||||
|
'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',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected function casts(): array
|
protected function casts(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'date_time_ss' => 'datetime',
|
'starttime' => 'datetime',
|
||||||
|
'date_acquisition' => 'datetime',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/***
|
public function league(): BelongsTo
|
||||||
country_ss
|
{
|
||||||
league_ss
|
return $this->belongsTo(CompetitionGroup::class, 'league_id', 'id');
|
||||||
home
|
}
|
||||||
away
|
|
||||||
home_ft
|
public function home(): BelongsTo
|
||||||
away_ft
|
{
|
||||||
home_ht
|
return $this->belongsTo(Element::class, 'home_id', 'id');
|
||||||
away_ht
|
}
|
||||||
date_time_ss
|
|
||||||
team
|
public function away(): BelongsTo
|
||||||
player_ss
|
{
|
||||||
goals
|
return $this->belongsTo(Element::class, 'away_id', 'id');
|
||||||
assists
|
}
|
||||||
tackles
|
|
||||||
total_passes
|
public function player(): BelongsTo
|
||||||
passes_done
|
{
|
||||||
total_duels
|
return $this->belongsTo(Player::class, 'player_id', 'id');
|
||||||
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
|
|
||||||
id_player_tm
|
|
||||||
h_a
|
|
||||||
date_player_id
|
|
||||||
date_home_away
|
|
||||||
id_league
|
|
||||||
data_di_acquisizione
|
|
||||||
txleague_id
|
|
||||||
txhome_id
|
|
||||||
txaway_id
|
|
||||||
*/
|
|
||||||
Generated
+65
-62
@@ -154,36 +154,36 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bezhansalleh/filament-plugin-essentials",
|
"name": "bezhansalleh/filament-plugin-essentials",
|
||||||
"version": "1.1.0",
|
"version": "1.2.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/bezhanSalleh/filament-plugin-essentials.git",
|
"url": "https://github.com/bezhanSalleh/filament-plugin-essentials.git",
|
||||||
"reference": "3bfdb276a8993ccd5acd9d6b43fd4763cf221d3a"
|
"reference": "de3a8a07edcf1bc9fe829480ae09aa00265e7f03"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/bezhanSalleh/filament-plugin-essentials/zipball/3bfdb276a8993ccd5acd9d6b43fd4763cf221d3a",
|
"url": "https://api.github.com/repos/bezhanSalleh/filament-plugin-essentials/zipball/de3a8a07edcf1bc9fe829480ae09aa00265e7f03",
|
||||||
"reference": "3bfdb276a8993ccd5acd9d6b43fd4763cf221d3a",
|
"reference": "de3a8a07edcf1bc9fe829480ae09aa00265e7f03",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"filament/filament": "^4.0|^5.0",
|
"filament/filament": "^4.0|^5.0",
|
||||||
"illuminate/contracts": "^11.28|^12.0",
|
"illuminate/contracts": "^11.28|^12.0|^13.0",
|
||||||
"php": "^8.2",
|
"php": "^8.2|^8.3",
|
||||||
"spatie/laravel-package-tools": "^1.9"
|
"spatie/laravel-package-tools": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"larastan/larastan": "^2.9||^3.0",
|
"larastan/larastan": "^3.0",
|
||||||
"laravel/pint": "^1.14",
|
"laravel/pint": "^1.14",
|
||||||
"nunomaduro/collision": "^8.1.1||^7.10.0",
|
"nunomaduro/collision": "^7.10.0|^8.1.1",
|
||||||
"orchestra/testbench": "^10.0.0||^9.0.0",
|
"orchestra/testbench": "^9.0.0|^10.0.0|^11.0.0",
|
||||||
"pestphp/pest": "^3.0",
|
"pestphp/pest": "^3.0|^4.0",
|
||||||
"pestphp/pest-plugin-arch": "^3.0",
|
"pestphp/pest-plugin-arch": "^3.0|^4.0",
|
||||||
"pestphp/pest-plugin-laravel": "^3.0",
|
"pestphp/pest-plugin-laravel": "^3.0|^4.0",
|
||||||
"pestphp/pest-plugin-type-coverage": "^3.5",
|
"pestphp/pest-plugin-type-coverage": "^3.5|^4.0",
|
||||||
"phpstan/extension-installer": "^1.3||^2.0",
|
"phpstan/extension-installer": "^1.3|^2.0",
|
||||||
"phpstan/phpstan-deprecation-rules": "^1.1||^2.0",
|
"phpstan/phpstan-deprecation-rules": "^1.1|^2.0",
|
||||||
"phpstan/phpstan-phpunit": "^1.3||^2.0",
|
"phpstan/phpstan-phpunit": "^1.3|^2.0",
|
||||||
"rector/rector": "^2.1",
|
"rector/rector": "^2.1",
|
||||||
"spatie/laravel-ray": "^1.40"
|
"spatie/laravel-ray": "^1.40"
|
||||||
},
|
},
|
||||||
@@ -220,7 +220,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/bezhanSalleh/filament-plugin-essentials/issues",
|
"issues": "https://github.com/bezhanSalleh/filament-plugin-essentials/issues",
|
||||||
"source": "https://github.com/bezhanSalleh/filament-plugin-essentials/tree/1.1.0"
|
"source": "https://github.com/bezhanSalleh/filament-plugin-essentials/tree/1.2.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -228,36 +228,36 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-01-19T19:23:25+00:00"
|
"time": "2026-03-22T08:15:32+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "bezhansalleh/filament-shield",
|
"name": "bezhansalleh/filament-shield",
|
||||||
"version": "4.1.0",
|
"version": "4.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/bezhanSalleh/filament-shield.git",
|
"url": "https://github.com/bezhanSalleh/filament-shield.git",
|
||||||
"reference": "bb5ac95b3c10f801e4c54bb289be8c055968726a"
|
"reference": "a48ea9ca115c644ce40380b853142afcd65e38d1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/bezhanSalleh/filament-shield/zipball/bb5ac95b3c10f801e4c54bb289be8c055968726a",
|
"url": "https://api.github.com/repos/bezhanSalleh/filament-shield/zipball/a48ea9ca115c644ce40380b853142afcd65e38d1",
|
||||||
"reference": "bb5ac95b3c10f801e4c54bb289be8c055968726a",
|
"reference": "a48ea9ca115c644ce40380b853142afcd65e38d1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"bezhansalleh/filament-plugin-essentials": "^1.0",
|
"bezhansalleh/filament-plugin-essentials": "^1.0",
|
||||||
"filament/filament": "^4.0|^5.0",
|
"filament/filament": "^4.0|^5.0",
|
||||||
"illuminate/contracts": "^11.28|^12.0",
|
"illuminate/contracts": "^11.28|^12.0|^13.0",
|
||||||
"illuminate/support": "^11.28|^12.0",
|
"illuminate/support": "^11.28|^12.0|^13.0",
|
||||||
"php": "^8.2",
|
"php": "^8.2|^8.3",
|
||||||
"spatie/laravel-package-tools": "^1.92",
|
"spatie/laravel-package-tools": "^1.0",
|
||||||
"spatie/laravel-permission": "^6.0"
|
"spatie/laravel-permission": "^6.0|^7.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"larastan/larastan": "^3.8",
|
"larastan/larastan": "^3.0",
|
||||||
"laravel/pint": "^1.26",
|
"laravel/pint": "^1.26",
|
||||||
"nunomaduro/collision": "^8.8",
|
"nunomaduro/collision": "^8.8",
|
||||||
"orchestra/testbench": "^10.8",
|
"orchestra/testbench": "^9.0|^10.0|^11.0",
|
||||||
"pestphp/pest": "^3.8|^4.0",
|
"pestphp/pest": "^3.8|^4.0",
|
||||||
"pestphp/pest-plugin-laravel": "^3.2|^4.0",
|
"pestphp/pest-plugin-laravel": "^3.2|^4.0",
|
||||||
"pestphp/pest-plugin-livewire": "^3.0|^4.0",
|
"pestphp/pest-plugin-livewire": "^3.0|^4.0",
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
"phpstan/phpstan": "^2.1",
|
"phpstan/phpstan": "^2.1",
|
||||||
"phpstan/phpstan-deprecation-rules": "^2.0",
|
"phpstan/phpstan-deprecation-rules": "^2.0",
|
||||||
"phpstan/phpstan-phpunit": "^2.0",
|
"phpstan/phpstan-phpunit": "^2.0",
|
||||||
"phpunit/phpunit": "^11.5",
|
"phpunit/phpunit": "^11.0|^12.0",
|
||||||
"rector/jack": "^0.4.0",
|
"rector/jack": "^0.4.0",
|
||||||
"rector/rector": "^2.2",
|
"rector/rector": "^2.2",
|
||||||
"spatie/laravel-ray": "^1.43"
|
"spatie/laravel-ray": "^1.43"
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/bezhanSalleh/filament-shield/issues",
|
"issues": "https://github.com/bezhanSalleh/filament-shield/issues",
|
||||||
"source": "https://github.com/bezhanSalleh/filament-shield/tree/4.1.0"
|
"source": "https://github.com/bezhanSalleh/filament-shield/tree/4.2.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -323,7 +323,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-01-19T19:28:46+00:00"
|
"time": "2026-03-22T08:31:44+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "blade-ui-kit/blade-heroicons",
|
"name": "blade-ui-kit/blade-heroicons",
|
||||||
@@ -699,16 +699,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "chillerlan/php-settings-container",
|
"name": "chillerlan/php-settings-container",
|
||||||
"version": "3.2.1",
|
"version": "3.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/chillerlan/php-settings-container.git",
|
"url": "https://github.com/chillerlan/php-settings-container.git",
|
||||||
"reference": "95ed3e9676a1d47cab2e3174d19b43f5dbf52681"
|
"reference": "a0a487cbf5344f721eb504bf0f59bada40c381b7"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/95ed3e9676a1d47cab2e3174d19b43f5dbf52681",
|
"url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/a0a487cbf5344f721eb504bf0f59bada40c381b7",
|
||||||
"reference": "95ed3e9676a1d47cab2e3174d19b43f5dbf52681",
|
"reference": "a0a487cbf5344f721eb504bf0f59bada40c381b7",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -716,11 +716,13 @@
|
|||||||
"php": "^8.1"
|
"php": "^8.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"phan/phan": "^5.5.2",
|
||||||
"phpmd/phpmd": "^2.15",
|
"phpmd/phpmd": "^2.15",
|
||||||
"phpstan/phpstan": "^1.11",
|
"phpstan/phpstan": "^2.1.31",
|
||||||
"phpstan/phpstan-deprecation-rules": "^1.2",
|
"phpstan/phpstan-deprecation-rules": "^2.0.3",
|
||||||
"phpunit/phpunit": "^10.5",
|
"phpunit/phpunit": "^10.5",
|
||||||
"squizlabs/php_codesniffer": "^3.10"
|
"slevomat/coding-standard": "^8.22",
|
||||||
|
"squizlabs/php_codesniffer": "^4.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -745,7 +747,8 @@
|
|||||||
"Settings",
|
"Settings",
|
||||||
"configuration",
|
"configuration",
|
||||||
"container",
|
"container",
|
||||||
"helper"
|
"helper",
|
||||||
|
"property hook"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/chillerlan/php-settings-container/issues",
|
"issues": "https://github.com/chillerlan/php-settings-container/issues",
|
||||||
@@ -761,32 +764,32 @@
|
|||||||
"type": "ko_fi"
|
"type": "ko_fi"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2024-07-16T11:13:48+00:00"
|
"time": "2026-03-20T21:10:52+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "codeat3/blade-phosphor-icons",
|
"name": "codeat3/blade-phosphor-icons",
|
||||||
"version": "2.3.0",
|
"version": "2.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/codeat3/blade-phosphor-icons.git",
|
"url": "https://github.com/codeat3/blade-phosphor-icons.git",
|
||||||
"reference": "2812a27ec642359344429d344c7f7bbdfad489ce"
|
"reference": "39a40c44908729d20f03f9903f4abcc165b1b02b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/codeat3/blade-phosphor-icons/zipball/2812a27ec642359344429d344c7f7bbdfad489ce",
|
"url": "https://api.github.com/repos/codeat3/blade-phosphor-icons/zipball/39a40c44908729d20f03f9903f4abcc165b1b02b",
|
||||||
"reference": "2812a27ec642359344429d344c7f7bbdfad489ce",
|
"reference": "39a40c44908729d20f03f9903f4abcc165b1b02b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"blade-ui-kit/blade-icons": "^1.1",
|
"blade-ui-kit/blade-icons": "^1.1",
|
||||||
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
|
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
|
||||||
"php": "^7.4|^8.0"
|
"php": "^7.4|^8.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"codeat3/blade-icon-generation-helpers": "^0.10",
|
"codeat3/blade-icon-generation-helpers": "^0.12",
|
||||||
"codeat3/phpcs-styles": "^1.0",
|
"codeat3/phpcs-styles": "^1.0",
|
||||||
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0",
|
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
|
||||||
"phpunit/phpunit": "^9.0|^10.5|^11.0"
|
"phpunit/phpunit": "^9.0|^10.5|^11.0|^12.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
@@ -824,7 +827,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/codeat3/blade-phosphor-icons/issues",
|
"issues": "https://github.com/codeat3/blade-phosphor-icons/issues",
|
||||||
"source": "https://github.com/codeat3/blade-phosphor-icons/tree/2.3.0"
|
"source": "https://github.com/codeat3/blade-phosphor-icons/tree/2.4.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -832,7 +835,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2025-02-25T06:29:09+00:00"
|
"time": "2026-03-21T13:21:02+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "codewithkyrian/filament-date-range",
|
"name": "codewithkyrian/filament-date-range",
|
||||||
@@ -6705,21 +6708,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "swisnl/filament-backgrounds",
|
"name": "swisnl/filament-backgrounds",
|
||||||
"version": "2.0.2",
|
"version": "2.0.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/swisnl/filament-backgrounds.git",
|
"url": "https://github.com/swisnl/filament-backgrounds.git",
|
||||||
"reference": "ae5bb5f909b3e11905b98eaee88ef46a56bdb952"
|
"reference": "c108f8024de047754773f37fd49ce4192e49fc59"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/swisnl/filament-backgrounds/zipball/ae5bb5f909b3e11905b98eaee88ef46a56bdb952",
|
"url": "https://api.github.com/repos/swisnl/filament-backgrounds/zipball/c108f8024de047754773f37fd49ce4192e49fc59",
|
||||||
"reference": "ae5bb5f909b3e11905b98eaee88ef46a56bdb952",
|
"reference": "c108f8024de047754773f37fd49ce4192e49fc59",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"filament/filament": "^4.0|^5.0",
|
"filament/filament": "^4.0|^5.0",
|
||||||
"illuminate/contracts": "^11.0|^12.0",
|
"illuminate/contracts": "^11.0|^12.0|^13.0",
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"spatie/laravel-package-tools": "^1.15.0"
|
"spatie/laravel-package-tools": "^1.15.0"
|
||||||
},
|
},
|
||||||
@@ -6727,10 +6730,10 @@
|
|||||||
"larastan/larastan": "^2.9|^3.0",
|
"larastan/larastan": "^2.9|^3.0",
|
||||||
"laravel/pint": "^1.13",
|
"laravel/pint": "^1.13",
|
||||||
"nunomaduro/collision": "^7.10|^8.1",
|
"nunomaduro/collision": "^7.10|^8.1",
|
||||||
"orchestra/testbench": "^8.15|^9.0|^10.0",
|
"orchestra/testbench": "^9.9|^10.0|^11.0",
|
||||||
"pestphp/pest": "^2.25|^3.7",
|
"pestphp/pest": "^3.7|^4.4",
|
||||||
"pestphp/pest-plugin-arch": "^2.4|^3.0",
|
"pestphp/pest-plugin-arch": "^3.0|^4.0",
|
||||||
"pestphp/pest-plugin-laravel": "^2.2|^3.1",
|
"pestphp/pest-plugin-laravel": "^3.1|^4.1",
|
||||||
"phpstan/extension-installer": "^1.4",
|
"phpstan/extension-installer": "^1.4",
|
||||||
"phpstan/phpstan-deprecation-rules": "^1.2|^2.0",
|
"phpstan/phpstan-deprecation-rules": "^1.2|^2.0",
|
||||||
"phpstan/phpstan-phpunit": "^1.4|^2.0"
|
"phpstan/phpstan-phpunit": "^1.4|^2.0"
|
||||||
@@ -6777,7 +6780,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-01-20T16:02:48+00:00"
|
"time": "2026-03-20T09:07:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/clock",
|
"name": "symfony/clock",
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
Schema::create('players', function (Blueprint $table) {
|
Schema::create('players', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->integer('player_id')->index()->uniqid();
|
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
$table->dateTime('birthday')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
font-family: 'Sport';
|
font-family: 'Sport';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
src: url('../../fonts/sport.ttf') format('truetype')
|
src: url('../fonts/sport.ttf') format('truetype')
|
||||||
}
|
}
|
||||||
|
|
||||||
.sport {
|
.sport {
|
||||||
|
|||||||
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
Reference in new issue
Block a user