title: laravel cors "Class cors does not exist" error
body: <p>I have followed <a href="https://github.com/barryvdh/laravel-cors" rel="noreferrer">https://github.com/barryvdh/laravel-cors</a> to enable CORS on my application.</p>
  
  <p>When I refresh my page (REST endpoint), I get the following message :-</p>
  
  <pre><code>Class cors does not exist
  </code></pre>
  
  <p>I ran the following command :-</p>
  
  <pre><code>composer require barryvdh/laravel-cors 0.7.x
  </code></pre>
  
  <p>and have the following line in my composer.json</p>
  
  <pre><code>"barryvdh/laravel-cors": "0.7.x"
  </code></pre>
  
  <p>Routes.php</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'cors'], function($router){
      $router-&gt;get('names/{id}', 'NameController@showEmpDetail');
      $router-&gt;resource('names', 'NameController');
  });
  </code></pre>
  
  <p>I am guessing that somewhere I'll need to call the package, like use the package etc..but I am not finding any result to help me out.</p>
  
  <p>Please help.</p>
  
  <p>Thanks</p>