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

pmcfernandes's avatar

Access to authenticated filament user in api outside panel

Hello

I need acess to filament authenticated user in api routers i'ts possible?

I tried auth()->user() and auth()->guard('web')->user() but get null

0 likes
3 replies
jlrdw's avatar

Are you an admin that has the permissions to view or edit other users?

pmcfernandes's avatar

@jlrdw Yes already fixed. API is stateless, must be move api point to web group.

martinbean's avatar

@pmcfernandes Why are you trying to access an authenticated user from an API endpoint in the first place? What’s consuming this API endpoint?

Please or to participate in this conversation.