danichangt's avatar

The GET method is not supported for route livewire/update. Supported methods: POST.

I have an application with Laravel 10 and Livewire 3. I'm using Livewire pagination specifically links('pagination::tailwind'), I don´t knot why if I use "links()" all work fine excepet the background color of the current page. The bg only works if I use "links('pagination::tailwind'), but with this way I have this error when I open and close a modal window, I thought that using 'wire:ignore' on pagination div will solve the issue, but when i want to filter data, the pagination don't change with the filter.

I will be grateful with your help, Thank you so much.

1 like
12 replies
vincent15000's avatar

There was a bug with the pagination links in Livewire v3.

Have you upgraded to the last release of Livewire v3 ? I have version 3.0.10.

danichangt's avatar

@vincent15000 in my composer.json is the livewire 3.0 version. I'll try upgrading the version. Thank you.

1 like
jakubjv's avatar

@danichangt i got same error, but this error always occurs when i update data table and wanna go to next or previous page..

1 like
danichangt's avatar

@jakubjv i choise don't use datatables, I',m beginer. And the only thing that i want is the bg blue on the current page of pagination. I don't know why using 'links()' and editing the blade of pagiation don't work.

1 like
jakubjv's avatar

@danichangt in your livewire component under definiton of class use this property protected $paginationTheme = 'bootstrap'; or you can try 'tailwind' if you are using tailwind

2 likes
danichangt's avatar

@jakubjv I used 'php artisan livewire:publish --pagination' to publish de blade of de livewire pagination. I don't know why I didn't it before. I was confused by de laravel core pagination. I ran that code and edit the bg color and the 'links()' work perfectly now. Thank you so mucho for your help. Also I updated the Livewire3 versions, now I have version 3.3.

1 like
vincent15000's avatar

@danichangt Have you published the livewire vendor pagination files ?

php artisan vendor:publish

And then choose : livewire:pagination.

brunopithon8's avatar

You need to put "use WithPagination;" in your class and don't forget to invoke "use Livewire\WithPagination;"

1 like

Please or to participate in this conversation.