Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jorgb's avatar
Level 1

livewire query pagination scope

Is there a best practise for applying global query scopes from within a Livewirecomponent?

Since there is no request going through the middleware enforcing the scope this gets ignored when accessing the paginated pages

Normally all livewire requests are passed through the web middleware but on specific routes i would like the livewire render requests to go through additional middleware

0 likes
1 reply
jorgb's avatar
Level 1

Fixed this issue by pushing middleware conditionally to the web group from my package service provider

If there is a best practice i'm very curious to know

Please or to participate in this conversation.