Stitch
Having issues grabbing user_id using auth-guard:web
I'm using FIlamentPHP v3 and I'm having issues fetching the authenticated/logged in user_id in my OrderController, I'm using $userId = Auth::id(); fasacde but for some reason it's not letting me grab the authenticated user_id. I'm using the default authentication method that comes with Filament not sanctum etc, I'm protecting the route with auth-guard:web middle-wear which FilamentPHP uses by default. Is there something obvious that someone can see I'm doing wrong?
42 replies