© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2mo ago•
7 replies
Owlen

Undefined type 'Filament\Forms\Components\Section'.

✅ Solved4️⃣v4
i read some tutorial and i do use gemini for help, and at the end its said such a cache, i already restart and reinstall and its still happens

about section didnt defined, even though i already write it on the top like this

<?php

namespace App\Filament\Admin\Resources\Categories\Schemas;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Section;

use Filament\Schemas\Schema;
use Illuminate\Support\Str;
use Filament\Forms\Set;

CLASS 'Set'

class CategoryForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->schema([
Section::make('Detail Kategori')
->description('Masukkan nama kategori batik dan slug yang unik.')
->schema([

TextInput::make('name')
->label('Nama Kategori')
->required()
->live(onBlur: true) // Aktifkan Livewire (update real-time)
->maxLength(255)

->afterStateUpdated(fn (string $operation, $state, Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null),


TextInput::make('slug')
->required()
->unique(ignoreRecord: true)
->maxLength(255),
])
]);
}
}



thank you
image.png
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

FooterActions method not present in Filament\Forms\Components\Section;
FilamentFFilament / ❓┊help
2y ago
Filament\Forms\Components\Select::isOptionDisabled():
FilamentFFilament / ❓┊help
3y ago
Undefined type 'Filament\PanelProvider'.
FilamentFFilament / ❓┊help
2y ago
Consistent forms when using filament components
FilamentFFilament / ❓┊help
3y ago