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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user