© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
elsayed85

passing auth user to script data return null

when passing auth user to script data and chechk console it returns null

https://filamentphp.com/docs/3.x/support/assets#registering-script-data

i think this beacuse i put the code inside the app service provider , so i cant access to auth user [ always return null ]
Assets - Core Concepts - Filament
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

auth()->user() everytime null
FilamentFFilament / ❓┊help
3y ago
auth()->user()->is_admin inside AdminPanel Provider return null
FilamentFFilament / ❓┊help
2y ago
auth()->user() is NULL for loading custom assets with data
FilamentFFilament / ❓┊help
2y ago
auth()->user() is null after login
FilamentFFilament / ❓┊help
2y ago