F
Filament12mo ago
Rahul

Rendering Modified User Form View from Vendor File

I have modified some code in the vendor file of a user resource, specifically in the "create user" form. Now, I want to render that view on the "create user" form. How can I do it?
8 Replies
Rahul
RahulOP12mo ago
How to solve it ???
toeknee
toeknee12mo ago
You don't, you should never modify vendor code. You should override the class instead.
Rahul
RahulOP12mo ago
Thank you for your response.. now i want to use that vendor code outside or How can I override the class? Can you provide a reference or example?
toeknee
toeknee12mo ago
You need to provide exactly what you are wanting to override. I assume it is the User livewire page.
Rahul
RahulOP12mo ago
I am using the wizard, and I want to change only the view of the wizard step. I want to use a progress bar in the step 1 and step 2 positions, maintaining the functionality of the wizard. Therefore, I have also modified the code in the vendor file, and now the progress bar is displaying correctly. Now, my only goal is to use that code outside .
toeknee
toeknee12mo ago
It is highly advised not to modify vendor code or override views which now sounds like what you are doing. Please see the docs: https://filamentphp.com/docs/3.x/support/style-customization#publishing-blade-views
toeknee
toeknee12mo ago
And then just override as you would any Laravel Vendor Package.
Rahul
RahulOP12mo ago
Thank you for your response...
Want results from more Discord servers?
Add your server