Laravel 5.1 Route Objekt nicht gefunden

Bitte helfen Sie mir, ich arbeite an einem Laravel mit der neuesten Version von xampp und weiß nicht, wo die Ursache für mein Problem liegt.

Diese Route funktioniert gut:

Route::get('/', function () {
    return 'aa';
});

Diese Route gibt einen Fehler "Objekt nicht gefunden!" Aus:

Route::get('about', function () {
    return 'aaa';
});

httpd.vhosts:

<VirtualHost test.loc:80>
   DocumentRoot "C:/xampp/apps/test.loc/public"
   ServerName test.loc
   <Directory "C:/xampp/apps/test.loc/public">
            #AllowOverride All - when I use this, I get a "Access forbidden!" for all routes
        Require all granted - this works for the main route, other routes give "errors".
</Directory>

/ public / .htaccess:

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Antworten auf die Frage(6)

Ihre Antwort auf die Frage