Target [Laravel\Socialite\Contracts\Factory] is not instantiable
<p>I am using laravel lumen 5.2.</p>

<p>Target [Laravel\Socialite\Contracts\Factory] is not instantiable. </p>

<p>I came across this error when trying to get Laravel to login with Twitter using the Socialite package.</p>

<p>Work already done:</p>

<p>A) In config\app.php
1. Laravel\Socialite\SocialiteServiceProvider::class
2. 'Socialite' => Laravel\Socialite\Facades\Socialite::class</p>

<p>I followed this :
<a href="http://goodheads.io/2015/08/24/using-twitter-authentication-for-login-in-laravel-5/" rel="noreferrer">http://goodheads.io/2015/08/24/using-twitter-authentication-for-login-in-laravel-5/</a></p>