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;
|
||||
|
||||
@@ -29,7 +30,7 @@ class VehicleResource 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\Select::make('client_id')
|
||||
@@ -43,7 +44,7 @@ class VehicleResource extends Resource
|
||||
Forms\Components\TextInput::make('year')->numeric()->minValue(1950)->maxValue(2100),
|
||||
Forms\Components\TextInput::make('vin')->maxLength(32),
|
||||
]),
|
||||
Forms\Components\Section::make('Tehnice')
|
||||
Schemas\Components\Section::make('Tehnice')
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('engine')->maxLength(60),
|
||||
|
||||
Reference in New Issue
Block a user