\Forms\Components\Select
Method Filament\Forms\Components\Select::table does not exist
How to fix this error when using \Forms\Components\Select
8 Replies
Can you give more context? A screenshot, copy/paste code will help
did you mean "Filament\Forms\Components\ModalTableSelect"? Because "Filament\Forms\Components\Select" doesnt have "table" method.
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
Sounds like you are using a Form component inside a table?
i don't understand
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.
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', ]),
Select::make('status') ->options([ 'draft' => 'Draft', 'reviewing' => 'Reviewing', 'published' => 'Published', ]),
Can you share the full stack trace?