Laravel 5.1 Route Object not found

你离开我真会死。 提交于 2019-12-01 11:16:53

I faced exactly the same problem, but finally this worked for me.

.....
<Directory "C:/xampp/apps/test.loc/public">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Require all granted
</Directory>

Add this to your httpd.vhosts file

<VirtualHost test.loc:80> 

 ServerName test.loc
 DocumentRoot "C:/xampp/apps/test.loc/public"
  <Directory "C:/xampp/apps/test.loc/public">
     Options Indexes FollowSymLinks MultiViews
     AllowOverride All
     Order allow,deny
     allow from all
 </Directory>

Have you tried adding a slash before the name? like this:

Route::get('/about', function () {
    return 'aaa';
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!