title: Class not found in Laravel 5 when register on the IoC Container
body: <p>In Laravel 5 I try to add MyClass into IoC Container.</p>
  
  <p>So I add the follow structure:</p>
  
  <p><strong>app/Libs/MyClass.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php namespace App\Libs;
  
  use App\Interfaces\MyClassInterface;
  
  class MyClass implements MyClassInterface {
  
      public function list($itemId)
      {
          // do any things
      }
  
  }
  </code></pre>
  
  <p><strong>app/Facades/MyClassFacade.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php namespace App\Facades;
  
  use Illuminate\Support\Facades\Facade;
  
  class MyClassFacade extends Facade {
  
          protected static function getFacadeAccessor()
          {
                  return 'myclass';
          }
  }
  </code></pre>
  
  <p><strong>app/Providers/MyClassServiceProvider.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php namespace App\Providers;
  
  use Illuminate\Support\ServiceProvider;
  
  use App\Libs\MyClass;
  class MyClassServiceProvider extends ServiceProvider {
      public function boot()
      {
          //
      }
      public function register()
      {
          $this-&gt;app-&gt;bind('myclass', function () {
              return new MyClass();
          });
      }
  }
  </code></pre>
  
  <p><strong>app/config/app.php</strong> (in providers)</p>
  
  <pre class="lang-php prettyprint-override"><code>'App\Providers\MyClassServiceProvider',
  </code></pre>
  
  <p><strong>app/config/app.php</strong> (in aliases)</p>
  
  <pre class="lang-php prettyprint-override"><code>'MyClass' =&gt; 'App\Facades\MyClassFacade',
  </code></pre>
  
  <p><strong>app/Http/Controllers/MyClassController.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php namespace App\Http\Controllers;
  
  class MyClassController {
  
  public function index($itemId = null)
  {
      $itemList = MyClass::list($itemId); // this is line error
  
      return view('item.list')-&gt;with($itemList);
  }
  </code></pre>
  
  <p>app/Http/routes.php</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::pattern('numeric', '[0-9]+');
  Route::get('item/{numeric?}', array('as' =&gt; 'item_list', 'uses' =&gt; 'MyClassController@index'));
  </code></pre>
  
  <p>Then I ran the command</p>
  
  <pre><code>composer update
  </code></pre>
  
  <p>and</p>
  
  <pre><code>composer dump-autoload
  </code></pre>
  
  <p><strong>But aways I get this Error:</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>Class 'App\Http\Controllers\MyClass' not found
  </code></pre>
  
  <p>Where am I going wrong?</p>