dalacode
dalacode
FFilament
Created by dalacode on 9/18/2023 in #❓┊help
Translatable repeater in relation manager
Equipment.php
public $translatable = [
'exterior_options',
'interior_options',
'comfort_options',
'security_options',
];
protected $casts = [
'exterior_options' => 'array',
'interior_options' => 'array',
'comfort_options' => 'array',
'security_options' => 'array',
];
public $translatable = [
'exterior_options',
'interior_options',
'comfort_options',
'security_options',
];
protected $casts = [
'exterior_options' => 'array',
'interior_options' => 'array',
'comfort_options' => 'array',
'security_options' => 'array',
];
4 replies
FFilament
Created by dalacode on 9/18/2023 in #❓┊help
Translatable repeater in relation manager
Fields schema:
Forms\Components\Tabs\Tab::make(__('Exterior'))
->schema([
Forms\Components\Repeater::make('exterior_options')
->label(__('Exterior options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),

Forms\Components\Tabs\Tab::make(__('Interior'))
->schema([
Forms\Components\Repeater::make('interior_options')
->label(__('Interior options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),

Forms\Components\Tabs\Tab::make(__('Comfort'))
->schema([
Forms\Components\Repeater::make('comfort_options')
->label(__('Comfort options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),

Forms\Components\Tabs\Tab::make(__('Security'))
->schema([
Forms\Components\Repeater::make('security_options')
->label(__('Security options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),
Forms\Components\Tabs\Tab::make(__('Exterior'))
->schema([
Forms\Components\Repeater::make('exterior_options')
->label(__('Exterior options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),

Forms\Components\Tabs\Tab::make(__('Interior'))
->schema([
Forms\Components\Repeater::make('interior_options')
->label(__('Interior options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),

Forms\Components\Tabs\Tab::make(__('Comfort'))
->schema([
Forms\Components\Repeater::make('comfort_options')
->label(__('Comfort options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),

Forms\Components\Tabs\Tab::make(__('Security'))
->schema([
Forms\Components\Repeater::make('security_options')
->label(__('Security options'))
->defaultItems(0)
->schema([
Forms\Components\TextInput::make('option')
->required()
->label(__('Option'))
]),
]),
4 replies
FFilament
Created by dalacode on 9/3/2023 in #❓┊help
reactive() vs. live(). what`s the difference?
thank you very much for your answer! the new method confused me a little, since previously there was only one reactive()
6 replies
FFilament
Created by shafiqruslan on 9/2/2023 in #❓┊help
How to make a wizard full width?
I do not remember exactly. I think I saw it in the phpstorm hints.
7 replies
FFilament
Created by shafiqruslan on 9/2/2023 in #❓┊help
How to make a wizard full width?
->columnSpanFull
7 replies