Lim
How to save relationship first
return $form
->schema([
Forms\Components\TextInput::make('integration_name') //this needs to be save last
->required()
->maxLength(100)
->columnSpanFull(),
Forms\Components\Fieldset::make('Shopify') //this needs to be save first
->relationship('tokens_shopify')
->schema([
Forms\Components\TextInput::make('url')
->label('URL')
->required()
->maxLength(255),
Forms\Components\TextInput::make('access_token')
->label('Access Token')
->required()
->maxLength(255),
Forms\Components\TextInput::make('api_key')
->label('API Key')
->required()
->maxLength(255),
Forms\Components\TextInput::make('api_secret')
->label('API Secret')
->required()
->maxLength(255),
])->columnSpan(1),
Forms\Components\Fieldset::make('eSuite') //this needs to be save first
->relationship('tokens_esuite')
->schema([
Forms\Components\TextInput::make('domain')
->required()
->maxLength(100),
Forms\Components\TextInput::make('database')
->required()
->maxLength(100),
Forms\Components\TextInput::make('password')
->required()
->maxLength(255),
])->columnSpan(1),
]);
}
return $form
->schema([
Forms\Components\TextInput::make('integration_name') //this needs to be save last
->required()
->maxLength(100)
->columnSpanFull(),
Forms\Components\Fieldset::make('Shopify') //this needs to be save first
->relationship('tokens_shopify')
->schema([
Forms\Components\TextInput::make('url')
->label('URL')
->required()
->maxLength(255),
Forms\Components\TextInput::make('access_token')
->label('Access Token')
->required()
->maxLength(255),
Forms\Components\TextInput::make('api_key')
->label('API Key')
->required()
->maxLength(255),
Forms\Components\TextInput::make('api_secret')
->label('API Secret')
->required()
->maxLength(255),
])->columnSpan(1),
Forms\Components\Fieldset::make('eSuite') //this needs to be save first
->relationship('tokens_esuite')
->schema([
Forms\Components\TextInput::make('domain')
->required()
->maxLength(100),
Forms\Components\TextInput::make('database')
->required()
->maxLength(100),
Forms\Components\TextInput::make('password')
->required()
->maxLength(255),
])->columnSpan(1),
]);
}
3 replies
filament:install --panels WARN
If is already and and still encountering some errors when creating a filament user
Try the fix below:
From the
Add the
Here is a sample code
Thank you
AdminServiceProvider
AdminServiceProvider
AdminServiceProvider->panel()
AdminServiceProvider->panel()
default()
default()
public function panel(Panel $panel): Panel
{
return $panel
->default() //added this
->registration()
->login() //add this if there is an error related to Route[login]
->id('admin')
->path('admin')
->colors([
'primary' => Color::Amber,
])
...
}
public function panel(Panel $panel): Panel
{
return $panel
->default() //added this
->registration()
->login() //add this if there is an error related to Route[login]
->id('admin')
->path('admin')
->colors([
'primary' => Color::Amber,
])
...
}
4 replies