Laravel queue Serialization of 'Closure' is not allowed
问题 I need help to dispatch a job with Laravel, seems the system try to serialize a closure when using queue job so there's this error. How can I fix this problem? I also tried this package https://github.com/jeremeamia/super_closure but it doesn't work in my case. Here is my code: In the controller FacebookController: public function getPosts(\SammyK\LaravelFacebookSdk\LaravelFacebookSdk $fb) //get all post of logged user { dispatch(new SyncFacebook($fb)); } And Job to dispatch: <?php namespace