title: Laravel 5 - Vendor - Class not found
body: <p>I am using laravel-analytics (<a href="https://github.com/spatie/laravel-analytics/" rel="nofollow">https://github.com/spatie/laravel-analytics/</a>) and have installed everything locally, works fine. </p>
  
  <p>Whenever I try to upload to the server, however, I get the following error visiting the page: <code>Class 'LaravelAnalytics' not found</code> and I am trying to access it via: <code>use \LaravelAnalytics as Analytics;</code> </p>
  
  <p>I am using both linux operating systems, both locally and on the server. I have also ran: <code>composer update</code> and now get: <code>Nothing to install or update</code> </p>
  
  <p>I have checked the .json file and I can see the package I am trying to install is there.</p>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "&gt;=5.5.9",
          "laravel/framework": "5.1.*",
          "illuminate/html": "5.*",
          "spatie/laravel-analytics": "^1.2"
      },
      "require-dev": {
          "fzaninotto/faker": "~1.4",
          "mockery/mockery": "0.9.*",
          "phpunit/phpunit": "~4.0",
          "phpspec/phpspec": "~2.1"
      },
      "autoload": {
          "classmap": [
              "database"
          ],
          "files":
          ["app/Http/helpers.php"],
  
          "psr-4": {
              "App\\": "app/"
          }
      },
      "autoload-dev": {
          "classmap": [
              "tests/TestCase.php"
          ]
      },
      "scripts": {
          "post-install-cmd": [
              "php artisan clear-compiled",
              "php artisan optimize"
          ],
          "pre-update-cmd": [
              "php artisan clear-compiled"
          ],
          "post-update-cmd": [
              "php artisan optimize"
          ],
          "post-root-package-install": [
              "php -r \"copy('.env.example', '.env');\""
          ],
          "post-create-project-cmd": [
              "php artisan key:generate"
          ]
      },
      "config": {
          "preferred-install": "dist"
      }
  }
  </code></pre>
  
  <p>Anyone have any ideas to what I am missing or where I am going wrong?</p>