Replies: 1 comment 2 replies
-
There seems to be a problem everytime I try to post a discussion, my OP goes missing... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Panel builder
Package Version
3.2.90
How can we help you?
https://filamentphp.com/docs/3.x/support/assets#registering-javascript-files
I would like to register a user's individual javascript script on a filament page, and the documentation says that we have to call
FilamentAsset::register(...)
inboot()
.However in
boot()
,auth()->user()
is null. and the user's individual script is named something like/js/script-{$user->id}.js
.Any ideas how to go about it?
Beta Was this translation helpful? Give feedback.
All reactions