diff --git a/app/Filament/Resources/RecycleMaterialsResource.php b/app/Filament/Resources/RecycleMaterialsResource.php index bde9930..bc104a7 100644 --- a/app/Filament/Resources/RecycleMaterialsResource.php +++ b/app/Filament/Resources/RecycleMaterialsResource.php @@ -13,6 +13,9 @@ use Filament\Resources\Resource; use Filament\Tables; use Filament\Tables\Actions\ActionGroup; +use Filament\Tables\Actions\DeleteAction; +use Filament\Tables\Actions\DeleteBulkAction; +use Filament\Tables\Actions\EditAction; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Table; @@ -84,16 +87,13 @@ public static function table(Table $table): Table ]) ->actions([ ActionGroup::make([ - Tables\Actions\EditAction::make(), - Tables\Actions\DeleteAction::make()->action(function ($record) { - $record->aliases()->delete(); - $record->delete(); - }), + EditAction::make(), + DeleteAction::make(), ]), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ - Tables\Actions\DeleteBulkAction::make(), + DeleteBulkAction::make(), ]), ]); }