PanalsRenderHook doesnt acce[t @script tag
I have created panals render hook in the header but when i want to implement js i get this error
my component register in appservice provider
my blade
9 Replies
I am new with this but i think the issue likely comes from the fact that the Auth::user() call is inside a closure. Since closures don't have access to $this, you cannot access properties or methods like you would in a class method.
Would help if you shared the stack trace and not only the error message
Blade
The AppServiceProvider
MessageCenter Class
And the stack trace?!
yea of course
and this is the log error
Seems like
@script
is causing issues. Not sure why thought. MessageCenter
is a valid Livewire class?