F
Filament3w ago
KAB

\Forms\Components\Select

Method Filament\Forms\Components\Select::table does not exist How to fix this error when using \Forms\Components\Select
8 Replies
Oscar Carvajal Mora
Can you give more context? A screenshot, copy/paste code will help
Azad Furkan ŞAKAR
did you mean "Filament\Forms\Components\ModalTableSelect"? Because "Filament\Forms\Components\Select" doesnt have "table" method.
KAB
KABOP3w ago
I want to do this : ```Select::make('status') ->options([ 'draft' => 'Draft', 'reviewing' => 'Reviewing', 'published' => 'Published', ]), that i want to do but the error "Method Filament\Forms\Components\Select::table does not exist" appears
Dennis Koch
Dennis Koch3w ago
Sounds like you are using a Form component inside a table?
KAB
KABOP3w ago
i don't understand
Dennis Koch
Dennis Koch3w ago
Where are you using that select? In a Form or in a Table? Please share some more code and make sure to format it properly.
KAB
KABOP3w ago
in a form ~~~<?php namespace App\Filament\Resources\Modeles\Schemas; use Filament\Forms; use Filament\Forms\FormsComponent; use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Select; use Filament\Forms\Components\ModalTableSelect; use Filament\Tables\Columns\SelectColumn; use Filament\Schemas\Schema; use Filament\Resources\FormSchema; use App\Models\Modele; use App\Models\Constructeur; use Filament\Resources\Resource; use Filament\Tables\Table; class ModeleForm { public static function configure(Schema $schema): Schema { return $schema ->components([ // TextInput::make('modele_name') ->label('Modèle') ->required(),
Select::make('status') ->options([ 'draft' => 'Draft', 'reviewing' => 'Reviewing', 'published' => 'Published', ]),
Dennis Koch
Dennis Koch3w ago
Can you share the full stack trace?

Did you find this page helpful?