title: Can't access Laravel helper class from a view
body: <p>I have my Helper file located at <code>app/Helpers/Helper.php</code></p>
  
  <p>
  
  <pre><code>class Helper {
  
      // Add body class
      public static function bodyClass() {
          $body_classes = array();
          $class = "";
  
          foreach ( \Request::segments() as $segment ) {
              if ( is_numeric( $segment ) || empty( $segment ) ) {
              continue;
              }
  
              $class .= ! empty( $class ) ? "-" . $segment : $segment;
              array_push( $body_classes, $class );
          }
          return ! empty( $body_classes ) ? implode( ' ', $body_classes ) : NULL;
      }
  }
  </code></pre>
  
  <p>Then in my <code>composer.json</code>, I autoloaded this Helper file like this:</p>
  
  <pre><code>"autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/"
      },
      "files": [
          "app/Helpers/Helper.php"
      ]
  },
  </code></pre>
  
  <p>Then in one of my master views, I have this:</p>
  
  <p><code>&lt;body class="{{ Helper::bodyClass() }}"&gt;</code></p>
  
  <p>But I get an error saying:</p>
  
  <p><code>Class 'Helper' not found</code></p>
  
  <p>I also did dump autoload so that shouldn't be the issue.  Anyone have any clues?</p>
  
  <p>Thanks!</p>