Build Modern Laravel Apps Using Inertia.js - Ep 17, Pagination

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 16

  • @bulent2435
    @bulent2435 2 роки тому +2

    That Component thing is amazing. It could have solved tones of issues I faced before.

  • @MuhammadImranMalik-j3v
    @MuhammadImranMalik-j3v 9 місяців тому

    11:06 loved your laugh. Thanks from Islamabad, Pakistan. I am going through your videos and learning.

  • @geradtroje4653
    @geradtroje4653 2 роки тому +5

    Jeffery, why do you use the map function after you already pull all the data instead of adding a "select([columns])" or "pluck([columns])" instead?

  • @EddieMao
    @EddieMao Рік тому

    Amazing tutorial.

  • @lserranoit
    @lserranoit Рік тому +3

    That tailwind library is not free.

  • @toyly2820
    @toyly2820 2 роки тому +2

    You can do.
    User::paginate( 10, ['id', 'name', 'body']);

  • @MailsonWei
    @MailsonWei 3 роки тому

    i been waiting for this damn!!!!

  • @davidrowlands8548
    @davidrowlands8548 2 роки тому

    Stunning tutorial!!!

  • @daledurham3048
    @daledurham3048 3 роки тому

    How are the link labels controlled? My are pagination.next and pagination.previous instead of the greater than less than like yours for those two. I can work around that in Vue, but am curious how you changed those.

  • @LuLu-gm2ey
    @LuLu-gm2ey 2 роки тому

    Will the laravel model protected columns still work with this hiding of sensitive data using this stack?

  • @bassemk6555
    @bassemk6555 7 місяців тому

    How to add perPage (pagination length) ?

  • @mangkepweng3741
    @mangkepweng3741 2 роки тому +1

    I have never heard nor seen any documentation about ->through ...

  • @joaquingamboa5429
    @joaquingamboa5429 2 роки тому

    How to work the pagination with partial visits and page?
    Every time I hit 1 page, I lose the data (when using lazy loading)
    my controller is :
    return Inertia::render('Dashboard', [
    'companies' => $companies,
    'documents' => Inertia::lazy(fn () => $documents)
    ]);
    and the button to get the list
    function list()
    {
    Inertia.reload(
    {
    preserveState: true,
    only: ['documents'],
    }
    )
    }

  • @lserranoit
    @lserranoit Рік тому

    Simplier: User::paginate(15, ['id', 'name']);

  • @bernardchisumo4054
    @bernardchisumo4054 Рік тому

    Hi Jeffery ,
    This code doesn't work on my side ,
    template>

    • @Life-pq7pq
      @Life-pq7pq Рік тому

      props is being undefined while there is link array in attrs did you find any solution?