Editing Data Using Modal in Laravel Livewire

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 24

  • @anmasa
    @anmasa 2 года назад

    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.

    • @Clovon
      @Clovon  2 года назад

      Many thanks!

  • @HassanInter
    @HassanInter 3 года назад +1

    Thanks a lot for this amazing explanation :) You led me to solve my issues. Really appretiate your work man.

    • @Clovon
      @Clovon  3 года назад +2

      You are welcome. Glad to hear that! 😊

  • @chocolate2402
    @chocolate2402 3 года назад

    Gracias por tus comentarios!!! un saludo desde España

  • @ApenasmaisumDev
    @ApenasmaisumDev 3 года назад

    Thank you so much, I was suffering from livewire.
    I saw the State on the jetstream but I didn't understand.

    • @Clovon
      @Clovon  3 года назад

      Awesome. Thanks!

  • @vince6473
    @vince6473 3 года назад

    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?

  • @fhawalteh
    @fhawalteh 3 года назад

    Let's start with big thanks for your efforts, can you make something for table sorting.

    • @Clovon
      @Clovon  3 года назад

      Thank You. Yes, soon stay tuned.

  • @ernestovillanueva9856
    @ernestovillanueva9856 2 года назад

    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?

  • @angkorwatcambodia3671
    @angkorwatcambodia3671 3 года назад

    Thank you so much

  • @xenonyoutub
    @xenonyoutub 3 года назад

    Excellent

  • @izantux
    @izantux 3 года назад

    Many thanks for sharing great content. Very instructional. Are you open to sharing the lessons source code on Github or similar?

    • @Clovon
      @Clovon  3 года назад +1

      Great. You are welcome. I am glad you liked those videos. Sure i will be sharing on github after making one more video.

    • @izantux
      @izantux 3 года назад

      @@Clovon thank you! I look forward to the next one. Keep it up :)

    • @Clovon
      @Clovon  3 года назад

      @@izantux okay thank you

    • @Clovon
      @Clovon  3 года назад +1

      Hi Daniel, Now the source code is available. Github link: github.com/clovon/Multipurpose-Laravel-and-Livewire-Application

  • @saeedsoltani5956
    @saeedsoltani5956 3 года назад

    hi ... how can i prevent re-rendering component when i click delete item or edit item ..?

    • @Clovon
      @Clovon  3 года назад

      Livewire re-renders the component and responds with updated HTML by default.

    • @vince6473
      @vince6473 3 года назад

      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.

  • @LearnProCode
    @LearnProCode 3 года назад

    $user is coming by default as an array so $this->user->update($validateData); not working

    • @Clovon
      @Clovon  3 года назад

      Please check the edit method, there i am assigning user object to user property so that we can get access to $this->user