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:
@@ -9,6 +9,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;
|
||||
|
||||
@@ -27,7 +28,7 @@ class CompanyResource extends Resource
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema->components([
|
||||
Forms\Components\Section::make('Identificare')
|
||||
Schemas\Components\Section::make('Identificare')
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('slug')
|
||||
@@ -41,14 +42,14 @@ class CompanyResource extends Resource
|
||||
Forms\Components\TextInput::make('display_name')->maxLength(120),
|
||||
Forms\Components\TextInput::make('city')->maxLength(60),
|
||||
]),
|
||||
Forms\Components\Section::make('Contact')
|
||||
Schemas\Components\Section::make('Contact')
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('contact_name')->maxLength(120),
|
||||
Forms\Components\TextInput::make('phone')->tel()->maxLength(40),
|
||||
Forms\Components\TextInput::make('email')->email()->maxLength(120),
|
||||
]),
|
||||
Forms\Components\Section::make('Abonament')
|
||||
Schemas\Components\Section::make('Abonament')
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\Select::make('status')
|
||||
|
||||
Reference in New Issue
Block a user