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

Prido's avatar
Level 2

Livewire Session

i have a livewire component for loading my dashboard, the routes to this is protected by auth. now when the page expires the livewire doesnt care it tries to work normally it doesnt respect the session 419.

0 likes
2 replies
Snapey's avatar

you could put auth()->check() in the render method and redirect if not logged in

Prido's avatar
Level 2

@Snapey yeah sounds hectic, seems i would have to auth check on the rest of the functions attached to the wire clicks and stuff with that approach

Please or to participate in this conversation.