Laravel 4 未找到Laravel状态,缺少路线

Laravel 4 未找到Laravel状态,缺少路线,laravel-4,vhosts,Laravel 4,Vhosts,我试图在Wamp服务器上安装Laravel,但出现以下错误: {"status":"Not Found","error":true,"error_code":"missing_route","message":"Route not found.","data":[]} 已经搜索了一段时间,但无法确定它是什么。我检查并三次检查了我是否正确地在hosts文件中添加了我的项目,虚拟主机是否设置正确,重写模块是否激活,以及公用文件夹中的.htaccess文件是否正确 主机文件: 127.0.0.1

我试图在Wamp服务器上安装Laravel,但出现以下错误:

{"status":"Not Found","error":true,"error_code":"missing_route","message":"Route not found.","data":[]}
已经搜索了一段时间,但无法确定它是什么。我检查并三次检查了我是否正确地在hosts文件中添加了我的项目,虚拟主机是否设置正确,重写模块是否激活,以及公用文件夹中的.htaccess文件是否正确

主机文件:

127.0.0.1   app.my-site.com
vhost

<VirtualHost *:80>
    ServerAdmin webmaster@my-site.com
    DocumentRoot "C:/wamp/www/my-site/public"
    ServerName app.my-site.com
    <Directory "C:/wamp/www/my-site/public">
       AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "logs/my-site-error.log"
    CustomLog "logs/my-site-access.log" common
</VirtualHost>

服务器管理员webmaster@my-site.com
DocumentRoot“C:/wamp/www/my site/public”
ServerName app.my-site.com
允许超越所有
命令允许,拒绝
通融
ErrorLog“logs/my site error.log”
CustomLog“logs/my site access.log”通用
.htaccess在公用文件夹中

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

    Options +FollowSymLinks
    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

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

选项-多视图
选项+FollowSymLinks
重新启动发动机
#重定向尾部斜杠。。。
重写规则^(.*)/$/$1[L,R=301]
#处理前控制器。。。
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^index.php[L]

有人能提出什么可能是错误的吗?

当错误发生时,你到底在做什么?您似乎已经安装了Laravel,因此不清楚是什么导致了该错误。我正在访问app.my-site.com尝试执行
php artisan缓存:清除
composer dumpautoload
,然后
php artisan routes
。你在名单上看到那条路线了吗?