title: Laravel routes are not working
body: <p>I have this really weird issue where the routing process on Laravel seems to not work at all.. I get <code>NotFoundHttpException</code> every time I try to load another route except the default one(<code>/</code>)</p>
  
  <p>These are my files:</p>
  
  <p>routes.php</p>
  
  <pre><code>&lt;?php
  
  Route::get('/', function () {
      return view('welcome');
  });
  
  Route::get('/test', function () {
      return "WORKING?";
  });
  </code></pre>
  
  <p>website apache config (<code>myquotes.conf</code> located in <code>/etc/apache2/sites-available</code>)</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName my.qoutes
      ServerAlias www.my.quotes
      ServerAdmin admin@my.quotes
      DocumentRoot /var/www/myquotes/public/
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>hosts rule</p>
  
  <pre><code>127.0.0.1   my.quotes
  </code></pre>
  
  <p>And <code>php artisan route:list</code> returns this</p>
  
  <pre><code>+--------+----------+------+------+---------+------------+
  | Domain | Method   | URI  | Name | Action  | Middleware |
  +--------+----------+------+------+---------+------------+
  |        | GET|HEAD | /    |      | Closure |            |
  |        | GET|HEAD | test |      | Closure |            |
  +--------+----------+------+------+---------+------------+
  </code></pre>
  
  <p>So I don't really understand where the problem is. If I try to load <code>/test</code> I get the error, if I edit the <code>function</code> form <code>/</code>, nothing happens in the browser, the same view with <code>Laravel 5</code> on it is shown. I have some other websites in <code>/var/www</code>, are those the problem or influencing it? The routes from the other websites are not working either. What should I do?</p>
  
  <p>EDIT: Tested in both Chromium and Firefox and the same<br>
  EDIT2: Okay.. After some more tweaking I found out that the problem was that I had 3 websites active under <code>sites-enabled</code> directory in <code>/etc/apache2</code> and the webserver was using the first one's configuration file and not the one form <code>myquotes</code>. The question now is how to have multiple sites running  on the same webserver?</p>