Wrong dependancy in composer.json #237

Closed
opened 2025-09-22 10:01:45 +00:00 by tgeorgel · 5 comments
tgeorgel commented 2025-09-22 10:01:45 +00:00 (Migrated from github.com)

Hi,

I'm using the package on a project where I don't have any panels (using the tables/forms plugin separately).

The thing is that this package requires filament/filament: ^4 instead of filament/tables: ^4, so it does install filament panels and throw me an issue because of that :

No default Filament panel is set. You may do this with the `default()` method inside a Filament provider's `panel()` configuration.


$> composer why filament/filament
pxlrbt/filament-excel         v3.1.0 requires filament/filament (^4.0)

If you have time to switch the dependancy at some point that would be awesome. Thanks !

Hi, I'm using the package on a project where I don't have any panels (using the tables/forms plugin separately). The thing is that this package requires `filament/filament: ^4` instead of `filament/tables: ^4`, so it does install filament panels and throw me an issue because of that : ``` No default Filament panel is set. You may do this with the `default()` method inside a Filament provider's `panel()` configuration. $> composer why filament/filament pxlrbt/filament-excel v3.1.0 requires filament/filament (^4.0) ``` If you have time to switch the dependancy at some point that would be awesome. Thanks !
pxlrbt commented 2025-09-22 13:00:43 +00:00 (Migrated from github.com)

Not sure it works with the table builder only. A lot of features rely on resources. Did you test it?

Not sure it works with the table builder only. A lot of features rely on resources. Did you test it?
tgeorgel commented 2025-09-22 13:11:42 +00:00 (Migrated from github.com)

@pxlrbt yeah, it works fine :-)

For now I've installed the filament/filament package so I can continue upgrading to Filament v4, so I'm not sure if it would work without the package tbh. It was working on filament v3 for sure, it's been in the codebase for a while, not sure what changed since Filament v4 and if you're using resources more than before.

I'm using the bulk action this way :

use pxlrbt\FilamentExcel\Actions\ExportBulkAction;
use pxlrbt\FilamentExcel\Columns\Column;
use pxlrbt\FilamentExcel\Exports\ExcelExport;

class ListRoutingContacts extends Component implements HasActions, HasSchemas, HasTable
{
    use InteractsWithActions;
    use InteractsWithSchemas;
    use InteractsWithTable;

    public function table(Table $table): Table
    {
        return $table
            ->query(
                // ...
            ->columns([
                 // ...
            ])
            ->toolbarActions([
                ExportBulkAction::make()
                    ->authorize('export')
                    ->exports([
                        ExcelExport::make()
                            ->askForFilename()
                            ->askForWriterType()
                            ->ignoreFormatting()
                            ->withColumns([
                                Column::make('id')->heading('id'),
                                Column::make('id_code')->heading('id_code'),
                                Column::make('language_code')->heading('language_code'),
                                Column::make('company')->heading('company'),
                                Column::make('first_name')->heading('first_name'),
                                Column::make('last_name')->heading('last_name'),
                                Column::make('emails')->heading('emails'),
                                ...
                            ]),
                    ]),
            ]);
    }
}
@pxlrbt yeah, it works fine :-) For now I've installed the `filament/filament` package so I can continue upgrading to Filament v4, so I'm not sure if it would work without the package tbh. It was working on filament v3 for sure, it's been in the codebase for a while, not sure what changed since Filament v4 and if you're using resources more than before. I'm using the bulk action this way : ```php use pxlrbt\FilamentExcel\Actions\ExportBulkAction; use pxlrbt\FilamentExcel\Columns\Column; use pxlrbt\FilamentExcel\Exports\ExcelExport; class ListRoutingContacts extends Component implements HasActions, HasSchemas, HasTable { use InteractsWithActions; use InteractsWithSchemas; use InteractsWithTable; public function table(Table $table): Table { return $table ->query( // ... ->columns([ // ... ]) ->toolbarActions([ ExportBulkAction::make() ->authorize('export') ->exports([ ExcelExport::make() ->askForFilename() ->askForWriterType() ->ignoreFormatting() ->withColumns([ Column::make('id')->heading('id'), Column::make('id_code')->heading('id_code'), Column::make('language_code')->heading('language_code'), Column::make('company')->heading('company'), Column::make('first_name')->heading('first_name'), Column::make('last_name')->heading('last_name'), Column::make('emails')->heading('emails'), ... ]), ]), ]); } } ```
pxlrbt commented 2025-09-22 14:07:25 +00:00 (Migrated from github.com)

not sure what changed since Filament v4 and if you're using resources more than before.

It's only when you use ->fromTable() etc. methods.

> not sure what changed since Filament v4 and if you're using resources more than before. It's only when you use `->fromTable()` etc. methods.
tgeorgel commented 2025-09-22 14:09:33 +00:00 (Migrated from github.com)

Oh right, I think I might have had some issues with that and moved to custom column definition.

Oh right, I think I might have had some issues with that and moved to custom column definition.
pxlrbt commented 2026-08-15 11:00:29 +00:00 (Migrated from github.com)

I'll bring this back with v4.1

I'll bring this back with v4.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-excel#237
No description provided.