Laravel 5.1 Route Object not found

后端 未结 3 432
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-15 14:14

Please help me, I\'m working on a Laravel using the latest version of xampp & do not know what the cause of my problem is.

This route is working fine:

         


        
相关标签:
3条回答
  • 2021-01-15 14:44

    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>
    
    0 讨论(0)
  • 2021-01-15 14:46

    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>
    
    0 讨论(0)
  • 2021-01-15 14:48

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

    Route::get('/about', function () {
        return 'aaa';
    });
    
    0 讨论(0)
提交回复
热议问题