AncientFriend
AncientFriend
FFilament
Created by AncientFriend on 11/7/2023 in #❓┊help
hint action tests
hey i got a hint action setup on a simple Select that opens a Form inside a modal.
Select::make('chooseProfile') ->hintAction( Action::make('createNewProfile')->label('newProfileAction')->form([ Grid::make()->schema([ TextInput::make('newProfile') ->required() ]) ]) )
how do i call that nested action when testing the livewire component in order to write tests for the form displayed in the modal? when i try using call action i get:
Failed asserting that an action with name [createNewProfile] exists on the [App\Livewire\ProfileForm] page.
38 replies
FFilament
Created by AncientFriend on 11/2/2023 in #❓┊help
Filament forms createOptionForm
hey i got a kinda funny problem when i render only a Select with a createOptionForm (containing whatever but for example a TextInput) it does not show the modal until i have a FilamentTable on the same page is something like this known?
4 replies
FFilament
Created by AncientFriend on 7/3/2023 in #❓┊help
Support for external relationship
Hey, I have a small problem with the hardcoded relationship types on Forms\Components\Fieldset. We are using the Staudenmeir (https://github.com/staudenmeir/eloquent-has-many-deep) relationships (HasOneDeep https://github.com/staudenmeir/eloquent-has-many-deep#hasonedeep in this case) and cannot use them without changing the typing on the interface and trait method getRelationship (EntanglesStateWithSingularRelationship, CanEntangleWithSingularRelationships). Is there a simple solution where I don't have to rewrite the trait or write around in vendor folders :D? It works with the relationship once I disable the typing.
4 replies