title: Laravel facade for model failing: Cannot redeclare class Content
body: <p>I want to add a Facade to my model named Content. But I always get the error <strong>Cannot redeclare class Content</strong>. Is that because the model is already loaded via the autoload? How can I fix this?</p>
  
  <p>I appreciate you help, thanks.</p>
  
  <p>This is how my composer file looks like</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "App\\": "app/"
      },
      "classmap": [
          "app/commands",
          "app/controllers",
          "app/models",
          "app/database/migrations",
          "app/database/seeds",
          "app/tests/TestCase.php",
          "app/Serviceproviders"
      ]
  },
  </code></pre>
  
  <p>And this is how my Serviceprovider looks like.</p>
  
  <pre><code>&lt;?php namespace App\Serviceproviders;
  
  use Illuminate\Support\ServiceProvider;
  
  class FormandsystemServiceProvider extends ServiceProvider {
  
      public function register()
      {
          $this-&gt;app-&gt;bind('content', function()
          {
              return new \App\models\Content;
          });
  
            $this-&gt;app-&gt;booting(function()
            {
              $loader = \Illuminate\Foundation\AliasLoader::getInstance();
              $loader-&gt;alias('Content', '\App\Facades\Content');
            });
      }
  
  }
  </code></pre>
  
  <p>My Facade looks like this.</p>
  
  <pre><code>&lt;? namespace App\Facades;
  
  use Illuminate\Support\Facades\Facade;
  
  class Content extends Facade {
  
      protected static function getFacadeAccessor() { return 'content'; }
  }
  </code></pre>