title: LDAP Auth for Laravel 5.2
body: <p>I've followed the instructions at <a href="https://github.com/strebl/ldap-auth" rel="nofollow">https://github.com/strebl/ldap-auth</a> with  a brand new laravel project and I can't seem to get it to work. I have done the following: </p>
  
  <p>Added the following line to app.php</p>
  
  <pre><code>Ccovey\LdapAuth\LdapAuthServiceProvider::class
  </code></pre>
  
  <p>Changed the driver to LDAP in auth.php</p>
  
  <pre><code>'providers' =&gt; [
          'users' =&gt; [
              'driver' =&gt; 'ldap',
              'model' =&gt; App\User::class,
          ]
      ],
  </code></pre>
  
  <p>I've also created a adladap.php file that I haven't posted here.</p>
  
  <p>I have also added middleware group in order to make sure the user was authenticated. </p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth'], function () {
      Route::get('/test', function(){ return "Test";});
  }
  </code></pre>
  
  <p>However when I try to go to the test route I get the following error </p>
  
  <pre><code>InvalidArgumentException in CreatesUserProviders.php line 40:
  Authentication user provider [ldap] is not defined.
  </code></pre>
  
  <p>I'm sure there's some simple configuration that I've been looking over but  for the life of me I can't figure out what it is.</p>