Laravel Controller Class doesn't exist
<p>So I'm having a really odd issue. Something I've never encounted in Laravel before.</p>

<p><code>Class App\Http\Controllers\Admin\AdminController does not exist</code></p>

<p>Firstly, the file structure is fine. The controller is clearly there.</p>

<p>Secondly, my route <code>Route::get('/admin', 'Admin\AdminController@index');</code>
seems to be fine, it's not returning any route errors.</p>

<p>Thirdly, I checked the namespace of my Controller which is <code>namespace App\Http\Controller\Admin;</code> normal and the starting class line is <code>class AdminController extends Controller { }</code> which again is normal.</p>

<p>I then went on to check my function, it exists,</p>

<pre><code>function index() {
  if (!Auth::user()-&gt;administrator) {
    return Redirect::to('https://http.cat/403');
  }
  return Redirect::to('https://http.cat/200');
}
</code></pre>

<p>It does!</p>

<p>The commands that I used to clear the cache:</p>

<p><code>composer dump-autoload</code> and <code>php artisan cache:clear</code></p>

<p>What have I done wrong to get this error?</p>