Courses

Advanced Laravel Livewire

Same Component for Create and Edit Forms

Previous: Delay Some Component Loading with wire:init
avatar

hi i can't get the existing selected values to be displayed in the select2 option field on the edit componet, any tip on how to do that thanks

avatar

Hello Vasile. did you use wire:model on select field..

avatar
You can use Markdown
avatar

And by using a single component for both, how do you handle the flash method to be different depending if the user was created or updated?

avatar

UPDATE: since I am using Livewire 3, I follow this instead and, I still had to create 2 seperate components but using one single form: //lesson/livewire-3/edit-product-form-object

avatar
You can use Markdown
avatar
You can use Markdown