My congratulations for this fantastic tutorial, it seems very didactic and very well explained, clear and simple concepts, thanks for your time and greetings from Spain.
Thanks a lot. Your video really helped me. I've one question: 9:48 i use the laravel policies to check if an user belongs to a post with "$this->authorize('view', $this->selectedPost)". If i place it before the "$this->state" thing it does not work. i get the error "Livewire encountered corrupt data when trying to hydrate the component." if i place it after it does work fine. I'm wondering how does that work. What does $state do?
Hi!!! Thanks a lot for your videos area great to learn and easy to follow. But I have an issue and can't find a solution, hope can help me. When I want to edit, I receive an "Array to string conversion" when I use this public function editEnterprise(Enterprise $enterprise) But this work when I use public function editEnterprise($enterprise){ $editEnterprise = Enterprise::find($enterprise); In the error, when I review the console in browser, it say ErrorException: Array to string conversion in file C:\xampp\htdocs\vgeclovon\vendor\laravel\framework\src\Illuminate\Database\Eloquent\ModelNotFoundException.php on line 42 But can't find useful information about this. Do you have any suggestion to verify?
I had the opposite problem before. You could make the collection in the controller and pass it to the livewire component instead of getting the data in the livewire component in render. It won't update like that.
My congratulations for this fantastic tutorial, it seems very didactic and very well explained, clear and simple concepts, thanks for your time and greetings from Spain.
Many thanks!
Thanks a lot for this amazing explanation :) You led me to solve my issues. Really appretiate your work man.
You are welcome. Glad to hear that! 😊
Gracias por tus comentarios!!! un saludo desde España
Thank you so much, I was suffering from livewire.
I saw the State on the jetstream but I didn't understand.
Awesome. Thanks!
Thanks a lot. Your video really helped me. I've one question:
9:48 i use the laravel policies to check if an user belongs to a post with "$this->authorize('view', $this->selectedPost)". If i place it before the "$this->state" thing it does not work.
i get the error "Livewire encountered corrupt data when trying to hydrate the component."
if i place it after it does work fine.
I'm wondering how does that work. What does $state do?
Let's start with big thanks for your efforts, can you make something for table sorting.
Thank You. Yes, soon stay tuned.
Hi!!!
Thanks a lot for your videos area great to learn and easy to follow.
But I have an issue and can't find a solution, hope can help me.
When I want to edit, I receive an "Array to string conversion" when I use this
public function editEnterprise(Enterprise $enterprise)
But this work when I use
public function editEnterprise($enterprise){
$editEnterprise = Enterprise::find($enterprise);
In the error, when I review the console in browser, it say
ErrorException: Array to string conversion in file C:\xampp\htdocs\vgeclovon\vendor\laravel\framework\src\Illuminate\Database\Eloquent\ModelNotFoundException.php on line 42
But can't find useful information about this. Do you have any suggestion to verify?
Thank you so much
Excellent
Thanks
Many thanks for sharing great content. Very instructional. Are you open to sharing the lessons source code on Github or similar?
Great. You are welcome. I am glad you liked those videos. Sure i will be sharing on github after making one more video.
@@Clovon thank you! I look forward to the next one. Keep it up :)
@@izantux okay thank you
Hi Daniel, Now the source code is available. Github link: github.com/clovon/Multipurpose-Laravel-and-Livewire-Application
hi ... how can i prevent re-rendering component when i click delete item or edit item ..?
Livewire re-renders the component and responds with updated HTML by default.
I had the opposite problem before.
You could make the collection in the controller and pass it to the livewire component instead of getting the data in the livewire component in render. It won't update like that.
$user is coming by default as an array so $this->user->update($validateData); not working
Please check the edit method, there i am assigning user object to user property so that we can get access to $this->user