Filament v5: Forms\Components\Section → Schemas\Components\Section, Forms\Get → Schemas\Components\Utilities\Get

Layout components (Section, Grid, Tabs, etc.) au fost mutate din
Filament\Forms\Components în Filament\Schemas\Components.
Forms\Components păstrează doar field-urile (TextInput, Select, etc.).

Forms\Get s-a mutat în Schemas\Components\Utilities\Get.
This commit is contained in:
2026-05-06 18:07:10 +00:00
parent d2bfae8b1e
commit 721c57ff97
8 changed files with 32 additions and 25 deletions
@@ -8,6 +8,7 @@ use Filament\Forms;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Actions;
use Filament\Schemas;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Support\Facades\Hash;
@@ -37,7 +38,7 @@ class UserResource extends Resource
public static function form(Schema $schema): Schema
{
return $schema->components([
Forms\Components\Section::make('Identitate')
Schemas\Components\Section::make('Identitate')
->columns(2)
->schema([
Forms\Components\TextInput::make('name')->label('Nume')->required()->maxLength(120),
@@ -47,7 +48,7 @@ class UserResource extends Resource
->options(['ro' => 'Română', 'ru' => 'Русский', 'en' => 'English'])
->default('ro'),
]),
Forms\Components\Section::make('Acces')
Schemas\Components\Section::make('Acces')
->columns(2)
->schema([
Forms\Components\Select::make('role')