sanis
sanis
FFilament
Created by omegar0643 on 8/15/2023 in #❓┊help
relationship using Spatie Translatable
5 replies
FFilament
Created by sanis on 8/8/2023 in #❓┊help
Translatable plugin doesn't support relationship selects
yeah, that's the way I'm doing as well, however would be super nice to get support out of the box with the plugin 🙂
5 replies
FFilament
Created by sanis on 7/25/2023 in #❓┊help
Select of relationship gives "call on null"
Thanks for your input !
11 replies
FFilament
Created by sanis on 7/25/2023 in #❓┊help
Select of relationship gives "call on null"
it must have been change because it was working before the weekend and now after the weekend (during the weekend I did the upgrade) it's like this :/ Anyhow, there is a solution, but it would be nice to have on the docs as well 🙂
11 replies
FFilament
Created by sanis on 7/25/2023 in #❓┊help
Select of relationship gives "call on null"
makes it work. However this wasn't a problem on v2 right?
11 replies
FFilament
Created by sanis on 7/25/2023 in #❓┊help
Select of relationship gives "call on null"
Okay, makes sense.
public function form(Form $form): Form
{
return
$form
->model($this->getRecord())
->statePath($this->getFormStatePath())
->schema(
[
TextInput::make('code'),
Select::make('menu_uuid')->relationship(name: 'menu', titleAttribute: 'code')
]
);
}
public function form(Form $form): Form
{
return
$form
->model($this->getRecord())
->statePath($this->getFormStatePath())
->schema(
[
TextInput::make('code'),
Select::make('menu_uuid')->relationship(name: 'menu', titleAttribute: 'code')
]
);
}
11 replies
FFilament
Created by sanis on 7/25/2023 in #❓┊help
Select of relationship gives "call on null"
Made a quick change and this did the trick (calling parent::form($form) on Page form: return parent::form($form) ->schema( [ TextInput::make('code'), Select::make('menu_uuid')->relationship(name: 'menu', titleAttribute: 'code') ] );
11 replies