Now let's create a real dynamic thing with Livewire: a Modal to show the form to create a category.

Also, we will make the Slug field automatically generated after we change the Name field.
Now let's create a real dynamic thing with Livewire: a Modal to show the form to create a category.

Also, we will make the Slug field automatically generated after we change the Name field.
thank you for this page
The add category button does not show modal on click in laravel 10.
Are there any errors in your browser console? No one else reported such bug.
There no errors on the browser console
Also need repo to see your code
Sorry for the necro... I got same problem with
Livewire: Multiple root elements detected.The problem is that the modal's div was outside the main div, after moving it inside, everything worked as expected.
PS. I am using laravel 10
Its just how livewire works.
PS Don't forget to have a cmd with "npm run dev" running if you are on Laravel 10. That was the problem for me with the modal not showing.
About postions: One should create the postions in numerical order, else moving a post with drag and drop won't work properly. So, move the creation of categories from the Categoryseeder (delete it) into the Databaseseeder:
livewire.js?id=a27c4ca2:347 Uncaught TypeError: Cannot read properties of null (reading 'name') at livewire.js?id=a27c4ca2:347:19 at Array.reduce (
It seems that in the latest version of Livewire, the binding
category.nameis not working as it works in this course. struggling to find a solution.Its because you are using the old syntax. Properties can't be binded to model directly
How do I fix that?
Read the docs. You can enable the old syntax but it is not recommended. This course was made when v3 wasn't released.