F
Filament2mo ago
Enas

pass data from Livewire to Wizard

Hello all, I have wizard with 3 steps, how to pass data ($existingUsersCount) from livewire to 3rd step, my code in attachments.
No description
No description
14 Replies
LeandroFerreira
LeandroFerreira2mo ago
Are you using a custom page?
Enas
EnasOP2mo ago
I have header action that show wizard in modal, the first step upload csv, the second one to edit the uploaded data and the last step is about show statistics (I want to show num of existing users) and I have livewire component with its blade.
No description
LeandroFerreira
LeandroFerreira2mo ago
Where is the livewire component?
Enas
EnasOP2mo ago
I will share the code with you, in SSOUserResource I have header action (import).
LeandroFerreira
LeandroFerreira2mo ago
could you share on gist please?
Enas
EnasOP2mo ago
sorry where?
LeandroFerreira
LeandroFerreira2mo ago
Gist
Discover gists
GitHub Gist: instantly share code, notes, and snippets.
Enas
EnasOP2mo ago
LeandroFerreira
LeandroFerreira2mo ago
ok but where are you using ImportUsersTable component?
Enas
EnasOP2mo ago
In second step to enable user to edit upload data,
No description
LeandroFerreira
LeandroFerreira2mo ago
you don't need to use a placeholder to render a LW component. You can do this
Enas
EnasOP2mo ago
well, but my main issue is how to pass $existingUserscount from LW to filament
LeandroFerreira
LeandroFerreira2mo ago
You mean, from LW to Wizard?

Did you find this page helpful?