Serialization of 'Closure' is not allowed laravel Queue
<p>I am scraping a site a get some of the data and it's a time taking job so I googled and found that Queue is good for this process I am stucked in this error</p>

<pre><code>Serialization of 'Closure' is not allowed
</code></pre>

<p>My code:</p>

<pre><code>class SiteScraper extends Job implements ShouldQueue
{
    use InteractsWithQueue, SerializesModels;

    protected $client;
    protected $crawler;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct()
    {

        $this-&gt;client = new Client();
        $this-&gt;crawler = $this-&gt;client-&gt;request('GET', 'example.com/login/');
        $form = $this-&gt;crawler-&gt;selectButton('Log In')-&gt;form();
        $this-&gt;crawler = $this-&gt;client-&gt;submit($form, array('email' =&gt; 'useremail', 'pass' =&gt; 'pass'));
        $this-&gt;crawler-&gt;filter('.flash-error')-&gt;each(function ($node) {
            print $node-&gt;text() . "\n";
        });
    }
 public function handle()
{

    $crawler = $this-&gt;client-&gt;request('GET', $url_to_traverse);
    $status_code = $this-&gt;client-&gt;getResponse()-&gt;getStatus();

        if($status_code == 200){
            $crawler-&gt;filter('.friendBrowserNameTitle &gt; a')-&gt;each(function ($node) {
                $names = $node-&gt;text() . '&lt;br&gt;';
                $profileurl = $node-&gt;attr('href') . '&lt;br&gt;';
                echo "Name : " . $names . "  Profile Link : " . $profileurl;

            });
        }
        else{
            echo $status_code;
        }

    }
}
</code></pre>

<p>Any help where I am going wrong?</p>