error it cant see my table columns

It was working but now it doest works idk why.. when i create supplier it cant see brands and subbrands. there is my code also:
return $form
            ->schema([
                TextInput::make('name')
                    ->required()
                    ->maxLength(255)
                    ->minLength(2),
                Select::make('brand_id')
                    ->label('Brand')
                    ->multiple()
                    ->relationship('brand', 'name')
                    ->searchable()
                    ->required()
                    ->options(Brand::all()->pluck('name', 'id'))
                    ->preload()
                    ->createOptionForm([
                        TextInput::make('name')
                            ->required()
                            ->label('New Brand'),
                    ]),
                Select::make('subbrand_id')
                    ->label('Subbrand')
                    ->multiple()
                    ->relationship('subbrand', 'name')
                    ->searchable()
                    ->options(Subbrand::all()->pluck('name', 'id'))
                    ->columnSpan('full')
                    ->preload()
                    ->createOptionForm([
                        TextInput::make('name')
                            ->required()
                            ->label('New Subbrand'),
                    ]),
            ]);
    }

Supplier Model:
image.png
image.png
image.png
Was this page helpful?