Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
auth()->user() is NULL for loading custom assets with data - Filament
F
Filament
•
2y ago
•
12 replies
Patrick
auth()->user() is NULL for loading custom assets with data
Hi there
,
I am following this docs
:
https://filamentphp.com/docs/3.x/support/assets#registering-script-data
Have added my code to AppServiceProvider boot
(
) method
, but auth
(
)
-
>user
(
) is always null
.
Any ideas
?
Assets - Core Concepts - Filament
Solution
Thanks Dennis
, I just created a middleware for it and not it works
. Did I missed sth in the docs
? It says clearly ServiceProvider boot with this example
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
auth()->user() is null after login
F
Filament / ❓┊help
2y ago
auth()->user() everytime null
F
Filament / ❓┊help
3y ago
passing auth user to script data return null
F
Filament / ❓┊help
3y ago
Issue with Loading Custom Assets in Filament Modal
F
Filament / ❓┊help
3y ago