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.
The add category button does not show modal on click in laravel 10.
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:
$position = 1;
while ($position < 13){
Category::factory()->create(['position' => $position,]);
$position ++;
}
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.name is not working as it works in this course. struggling to find a solution.
thank you for this page