Serialization of Closure is not allowed #5700
Unanswered
andrersilva96
asked this question in
1. Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The situation: I want to dispatch a Flash Message without call the current component, but in a service (I don't want to use a Larave Echo for this) catching the component saved on session to dispatch by Service so I'm getting this error "Serialization of 'Closure' is not allowed".
Bug Sharer: https://flareapp.io/share/LPdwEEym#F38
Simulating the error:
I trying to save in any component on my laravel session, followed by:
As incredible as it seems I'm trying to saving in session with $_SESSION (I know this is wrong) and without serialize I got it!
The following situation that works:
Beta Was this translation helpful? Give feedback.
All reactions