title: Class not found, plugin working good
body: <p>I made new plugin with informations find at this post: <a href="https://luketowers.ca/blog/how-to-use-laravel-packages-in-october-cms-plugins/" rel="nofollow noreferrer">https://luketowers.ca/blog/how-to-use-laravel-packages-in-october-cms-plugins/</a></p>
  
  <p>I update composer.php and in vendor folder i got created files I see plugin phpclasses/evalmath in backend.</p>
  
  <p>When on page i try do math operation:</p>
  
  <pre><code>function onStart() {
  
      // instantiate a new EvalMath
  
      $m = new EvalMath;
  
      $m-&gt;suppress_errors = true;
  
      // set the value of x
  
      $m-&gt;evaluate('x = 3');
  
      var_dump($m-&gt;evaluate('y = (x &gt; 5)'));
  }
  </code></pre>
  
  <p>I got error that Class 'EvalMath' not found Class is defined in file /plugins/phpclasses/evalmath/vendor/phpclasses/evalmath/evalmath.class.php What i am doing wrong?</p>
  
  <p>in file /plugins/phpclasses/evalmath/composer.json</p>
  
  <pre><code>{
    "require": {
      "phpclasses/evalmath": "&gt;=1.0.0"
    },
    "repositories": [
      {
        "type": "composer",
        "url": "https:\/\/www.phpclasses.org\/"
      },
      {
        "packagist": false
      }
    ]
  }
  </code></pre>
  
  <p>in file /plugins/phpclasses/evalmath/Plugin.php</p>
  
  <pre><code>&lt;?php namespace phpclasses\evalmath;
  
  use App;
  use Config;
  use System\Classes\PluginBase;
  use Illuminate\Foundation\AliasLoader;
  
  /**
   *
   * Class Plugin */
  class Plugin extends PluginBase
  {
      /**
       *
       * Returns information about this plugin.
       * @return array
       */
      public function pluginDetails()
      {
          return ['name' =&gt; 'phpclasses/evalmath',
  
              'description' =&gt; 'OctoberCMS plugin for demonstrating the use of Laravel Packages within October plugins',
  
              'author' =&gt; 'hhh',
  
              'icon' =&gt; 'icon-leaf'
          ];
      }
  
      /**
       *
       * Runs right before the request route */
      public function boot()
      {
          // Setup required packages $this-&gt;bootPackages(); }
          /**
           *
           * Boots (configures and registers) any packages found within this plugin's packages.load configuration value
           * @see https://luketowers.ca/blog/how-to-use-laravel-packages-in-october-plugins
           * @author Luke Towers octobercms@luketowers.ca
           */
          public
          function bootPackages()
          { // Get the namespace of the current plugin to use in accessing the Config of the plugin $pluginNamespace = str_replace('\', '.', strtolower(NAMESPACE));
  
              // Instantiate the AliasLoader for any aliases that will be loaded
              $aliasLoader = AliasLoader::getInstance();
  
              // Get the packages to boot
              $packages = Config::get($pluginNamespace . '::packages');
  
              // Boot each package
              foreach ($packages as $name =&gt; $options) {
                  // Setup the configuration for the package, pulling from this plugin's config
                  if (!empty($options['config']) &amp;&amp; !empty($options['config_namespace'])) {
                      Config::set($options['config_namespace'], $options['config']);
                  }
  
                  // Register any Service Providers for the package
                  if (!empty($options['providers'])) {
                      foreach ($options['providers'] as $provider) {
                          App::register($provider);
                      }
                  }
  
                  // Register any Aliases for the package
                  if (!empty($options['aliases'])) {
                      foreach ($options['aliases'] as $alias =&gt; $path) {
                          $aliasLoader-&gt;alias($alias, $path);
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>in file /plugins/phpclasses/evalmath/classes/config.php</p>
  
  <pre><code>&lt;?php 
  return [
  
      // This contains the Laravel Packages that you want this plugin to utilize listed under their package identifiers
      'packages' =&gt; [
  
          'phpclasses/evalmath' =&gt; [
  
          ],
  
      ],
  ];
  </code></pre>