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
How to solve it ???
You don't, you should never modify vendor code.
You should override the class instead.
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?
You need to provide exactly what you are wanting to override. I assume it is the User livewire page.
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 .
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
And then just override as you would any Laravel Vendor Package.
Thank you for your response...