From b54a8af14523ec9295249f4f645c4da56b3645e0 Mon Sep 17 00:00:00 2001 From: DiegoAndresMejia Date: Sat, 30 Nov 2024 19:16:34 -0500 Subject: [PATCH] fix: deleted unnecessaries files --- Modules/Lottery/app/Models/Lottery.php | 1 - app/Filament/Resources/LoteryResource.php | 100 ------------------ .../LoteryResource/Pages/CreateLotery.php | 12 --- .../LoteryResource/Pages/EditLotery.php | 19 ---- .../LoteryResource/Pages/ListLoteries.php | 19 ---- 5 files changed, 151 deletions(-) delete mode 100644 app/Filament/Resources/LoteryResource.php delete mode 100644 app/Filament/Resources/LoteryResource/Pages/CreateLotery.php delete mode 100644 app/Filament/Resources/LoteryResource/Pages/EditLotery.php delete mode 100644 app/Filament/Resources/LoteryResource/Pages/ListLoteries.php diff --git a/Modules/Lottery/app/Models/Lottery.php b/Modules/Lottery/app/Models/Lottery.php index 5200822..1471e4c 100644 --- a/Modules/Lottery/app/Models/Lottery.php +++ b/Modules/Lottery/app/Models/Lottery.php @@ -4,7 +4,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; -// use Modules\Lottery\Database\Factories\LotteryFactory; use Modules\Raffle\Models\Raffle; use Modules\Draws\Models\Draws; diff --git a/app/Filament/Resources/LoteryResource.php b/app/Filament/Resources/LoteryResource.php deleted file mode 100644 index e3c216c..0000000 --- a/app/Filament/Resources/LoteryResource.php +++ /dev/null @@ -1,100 +0,0 @@ -schema([ - TextInput::make('name') - ->label('Lottery Name') - ->required() - ->maxLength(255), - - TextArea::make('description') - ->label('Description') - ->nullable() - ->maxLength(500), - - TextInput::make('url_imagen') // Usamos TextInput para la URL - ->label('Image URL') - ->nullable() - ->url() // Esto asegura que solo se ingrese una URL válida - ->maxLength(1024), - ]); - } - - public static function table(Table $table): Table - { - return $table - ->columns([ - TextColumn::make('name') - ->label('Lottery Name') - ->sortable() - ->searchable(), - - TextColumn::make('description') - ->label('Description') - ->sortable() - ->searchable(), - - TextColumn::make('image_url') - ->label('Image URL') - ->sortable() - ->searchable(), - - TextColumn::make('created_at') - ->label('Created At') - ->sortable() - ->dateTime(), - ]) - ->filters([ - // Puedes agregar filtros si es necesario - ]) - ->actions([ - Tables\Actions\EditAction::make(), - Tables\Actions\DeleteAction::make(), - ]) - ->bulkActions([ - Tables\Actions\DeleteBulkAction::make(), - ]); - } - - public static function getRelations(): array - { - return [ - // Si deseas agregar más relaciones, agrégalas aquí - ]; - } - - public static function getPages(): array - { - return [ - 'index' => Pages\ListLoteries::route('/'), - 'create' => Pages\CreateLotery::route('/create'), - 'edit' => Pages\EditLotery::route('/{record}/edit'), - ]; - } -} diff --git a/app/Filament/Resources/LoteryResource/Pages/CreateLotery.php b/app/Filament/Resources/LoteryResource/Pages/CreateLotery.php deleted file mode 100644 index b76b90b..0000000 --- a/app/Filament/Resources/LoteryResource/Pages/CreateLotery.php +++ /dev/null @@ -1,12 +0,0 @@ -