title: Class encypter does not exist
body: <p>I am getting the following error message on Laravel 5.2:</p>
  
  <pre><code>ReflectionException in Container.php line 734:
  Class encrypter does not exist
  </code></pre>
  
  <p>What could be causing this issue?</p>
  
  <h2>Edit:</h2>
  
  <p>The error occurs when I add the following code to app.php:</p>
  
  <pre><code>    'providers' =&gt; [
      // Other service providers...
  
      Laravel\Socialite\SocialiteServiceProvider::class,
  ],
  
  'Socialite' =&gt; Laravel\Socialite\Facades\Socialite::class,
  </code></pre>