#Running command 'php artisan make:filament-table <TABLE_NAME>' error

2 messages · Page 1 of 1 (latest)

dawn summit
#

I am having an error when I am trying to create a filament table class for 'ModalSelectTable' , how can I fix this issue? Thank you!

  Symfony\Component\ErrorHandler\Error\FatalError 

  Declaration of Filament\Actions\Concerns\InteractsWithActions::getAction(array|string $actions): ?Filament\Actions\Action must be compatible with Filament\Schemas\Components\Component::getAction(array|string|null $name = null): ?Filament\Actions\Action

  at vendor/filament/actions/src/Concerns/InteractsWithActions.php:635
    631▕ 
    632▕     /**
    633▕      * @param  string | array<string>  $actions
    634▕      */
  ➜ 635▕     public function getAction(string | array $actions): ?Action
    636▕     {
    637▕         $actions = array_map(
    638▕             fn (string | array $action): array => is_array($action) ? $action : ['name' => $action],
    639▕             Arr::wrap($actions),


   Whoops\Exception\ErrorException 

  Declaration of Filament\Actions\Concerns\InteractsWithActions::getAction(array|string $actions): ?Filament\Actions\Action must be compatible with Filament\Schemas\Components\Component::getAction(array|string|null $name = null): ?Filament\Actions\Action

  at vendor/filament/actions/src/Concerns/InteractsWithActions.php:635
    631▕ 
    632▕     /**
    633▕      * @param  string | array<string>  $actions
    634▕      */
  ➜ 635▕     public function getAction(string | array $actions): ?Action
    636▕     {
    637▕         $actions = array_map(
    638▕             fn (string | array $action): array => is_array($action) ? $action : ['name' => $action],
    639▕             Arr::wrap($actions),

      +1 vendor frames 

  2   [internal]:0
      Whoops\Run::handleShutdown()
pallid timberBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution