Pagination | Laravel Livewire 3 Course for Beginners EP6

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

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

  • @FindWebX
    @FindWebX Год назад +2

    I'm just doing the pagination part using livewire 3. Then you published a video for it❤. Thank you very much.

    • @yelocode
      @yelocode  Год назад +1

      Great to hear, perfect timing :). Thank you for watching

    • @MuhammadKamran-lj2dd
      @MuhammadKamran-lj2dd 4 месяца назад

      @@yelocode brother currently i am try but facing error "Property type not supported in Livewire for property", i tried everything but not working when i use paginate(), it gives me error

  • @harshwebdev
    @harshwebdev Год назад +2

    Really bro it's too helpful series keep it up

  • @jessejorgesantana1169
    @jessejorgesantana1169 8 месяцев назад

    Very helpful, thank you bro!

  • @ousssika5359
    @ousssika5359 Год назад +1

    thanks for the series man

    • @yelocode
      @yelocode  Год назад

      Thanks for watching.

  • @SASSourcingOfficeExecutive
    @SASSourcingOfficeExecutive Год назад

    Thank you for your video. I have do this but i am facing a problem. when i click 2nd page or next page the page is not change how to fixed it?

  • @HamadAbdulla_7
    @HamadAbdulla_7 Год назад +2

    Thank you

    • @yelocode
      @yelocode  Год назад

      Thank you for watching

  • @tiagobordin6580
    @tiagobordin6580 7 месяцев назад +1

    Amazing tool and amazing videos! I would love to see your courses on Udemy I would by many of them =)

    • @yelocode
      @yelocode  6 месяцев назад

      Thanks you :)

  • @YOUCEFKacem-b8q
    @YOUCEFKacem-b8q 3 месяца назад

    hi there thanks for the course , i faced an issue which is the design for the pagination is not working I don't know way i changed the the "pagination_theme" in config/livewire.php file to
    'pagination_theme' => 'tailwind',
    but nothing change also i set the AppServiceProvider and add the line bellow to the boot() method
    use Illuminate\Pagination\Paginator as PaginationPaginator;
    public function boot(): void
    {
    PaginationPaginator::useTailwind();
    }
    if someone have i solution or can help me

  • @s.alimotamedi13
    @s.alimotamedi13 Год назад +1

    very useful

    • @yelocode
      @yelocode  Год назад

      Glad to hear that :)

  • @gaborhuszka289
    @gaborhuszka289 Год назад +1

    Hey man, just wanted to thank you for this course. Its incredibly helpful for me as a uni student in his last year, since my main project will be in Laravel.
    Only one thing which I can't wrap my head around and maybe you explain it in later videos, but when I send a registration form like this in the videos, on the network tab(f12) it displays the typed in password which is a huge security error. It also doesn't matter if I put @method('post') inside the form.
    Could you please explain how to solve this issue?

    • @yelocode
      @yelocode  Год назад +1

      Thanks for watching. Glad to hear the videos are helpful.
      That is the expected behavior when you are inspecting the network request on the client side, if you try this on any other website like youtube, instagram or x you will also be able to see your password in plain text in the network tab. The developer tools just captures the request before it's transmitted so you can see the entire request in plain text format.
      As long as your website is using https with a valid ssl certificate, the request is encrypted when leaving the browser so the password won't be visible to anyone except the backend server.
      If you want to see the difference between http and https on how the request / password looks, you can use a tool like wireshark to see how the request looks from your ISP or any other person siting between the client and your server.
      This video might be helpful to see the difference : ruclips.net/video/MXhv-75C-w0/видео.html

    • @gaborhuszka289
      @gaborhuszka289 Год назад +1

      I understand now, thank you very much! :)@@yelocode

  • @skankbaplank8854
    @skankbaplank8854 4 месяца назад

    Why does the pagination button only show 'pagination.previous' and 'pagination.next' in mobile mode?

  • @ayeshniroshan2378
    @ayeshniroshan2378 4 месяца назад

    thanks bro

  • @tabish__ali
    @tabish__ali 8 месяцев назад

    Hi, my data is not updating in at backend in php file it's new data, somehow it's not reaching the front end, after clicking the page button or next or prev, it just remains the same...

  • @rustamergashev7278
    @rustamergashev7278 Год назад +1

    👍

  • @Naderabdou
    @Naderabdou 11 месяцев назад

    when use pagination validation form is run after click anthor page

  • @my-lofi-music
    @my-lofi-music Год назад

    Ola, não sei se aconteceu com mais alguém, mas quando se esta na paginação maior que 1, exemplo 2, 3 ou superior, ao tentar excluir um registro ele não pega o id daquela linha que foi clicada, acaba pegando das primeiras linha da tabela ou da pagina 1. Se alguem souber como resolver, ou saber se é Bug.

    • @yelocode
      @yelocode  Год назад +1

      I used google translate, but I think the solution to your problem is adding wire:key with a unique value to the items inside the loop. I cover this in the crash course video at 14 min mark
      ruclips.net/video/gFeeVyJQeBc/видео.html

    • @my-lofi-music
      @my-lofi-music Год назад

      Sorry I hadn't seen this video, it was still in the sequence of the other playlist, but your videos are excellent, thank you very much. congratulations@@yelocode

  • @SojhoManx3
    @SojhoManx3 Год назад

    Thanks so much for the video. But I am having an issue, when I change page the validation gets trigger. I have doing same as you are showing. saying email field is required password is required, I am just changing page.

    • @SojhoManx3
      @SojhoManx3 Год назад

      So it was may be due to PHP version replacing the new #[Rule()] with $this->validate([]) worked fine.

    • @yelocode
      @yelocode  Год назад

      Thank you for watching.
      At the time of this video there was a bug in livewire, what is happening for you is the expected behaviour. I think the bug was fixed recently, if you like to use the annotation syntax need to do it like below to disable auto validation on every request.
      #[Rule('required|min:3', onUpdate: false)]

    • @yelocode
      @yelocode  Год назад

      Thank you for bringing it up to my attention. I will have to remake this video to avoid confusion for other people

    • @yelocode
      @yelocode  Год назад

      So seems like you still need to call $this->validate() in the latest version. but you can disable the auto validation with something like below if it's causing issues.
      #[Rule('required|min:3', onUpdate: false)]
      The github discussion tab about this issue:
      github.com/livewire/livewire/discussions/6157

  • @FindWebX
    @FindWebX Год назад

    Hi again. Did you notice the vite and livewire 3 pagination issue. Url page numbers change but data records not change.😢

    • @yelocode
      @yelocode  Год назад +1

      No I haven't experienced that issue, maybe one of your javascript dependencies is having issues with livewire? it could also be a bug in livewire 3 since it's still in beta

  • @michaelbarasa1569
    @michaelbarasa1569 Год назад +1

    can you do an update with a unique field, e.g. email? 🙏

    • @yelocode
      @yelocode  Год назад +1

      Will very likely cover that in future videos. will reply to this comment when I upload it.
      But the process would be similar to updating any other field just need to update your validation rule to something like this : 'email' => ['email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)]. This will ignore the email of the user you are updating.

  • @BrunoVinicius-ix8wt
    @BrunoVinicius-ix8wt Год назад +1

    Please heeelp! I have no idea how to handle events in livewire like for example closing a form inside a modal after submitting it! The damned thing just stays there =(

    • @yelocode
      @yelocode  Год назад +1

      You probably could use alphine js to close it or send a browser event if you want to close. I will make a video about modals will livewire as well. Will reply to your comment when the video is out.

    • @BrunoVinicius-ix8wt
      @BrunoVinicius-ix8wt Год назад +1

      @@yelocode Thanks dude!

    • @yelocode
      @yelocode  Год назад +1

      The Modal video is out, hope it's helpful : ruclips.net/video/ZQJhabcophk/видео.html

    • @BrunoVinicius-ix8wt
      @BrunoVinicius-ix8wt Год назад

      @@yelocode Thank you!!!