Cannot declare class Controller, because the name is already in use
<p>I recently migrated a laravel 4.2 project to 5.0. So far I have completed all the necessary steps but I keep getting an error. </p>

<blockquote>
  <p>Cannot declare class Controller, because the name is already in use</p>
</blockquote>

<p>My Controller is changed as provided by laravel in the upgrade guide. </p>

<pre><code>&lt;?php

use Illuminate\Foundation\Bus\DispatchesCommands;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;

abstract class Controller extends BaseController {

    use DispatchesCommands, ValidatesRequests;

}
</code></pre>

<p>Also I have added it to the classmap directive of my composer.json. </p>

<pre><code>"autoload": {
    "classmap": [
        "database",
        "app/Http/Controllers"
    ],
    "psr-4": {
        "App\\": "app/"
    }
},
</code></pre>

<p>I couldn't find any solution so far so if you guys know what to do it would help me out a lot :) thanks in advance!</p>