2015-11-02 152 views
1

我已经克隆从GitHub存储库,但在管理路由收到错误,同样的代码是另一个开发机器上运行良好,我们俩都使用的是Window 8Laravel5:NotFoundHttpException在RouteCollection.php线161

我们使用Auth中间件验证用户的登录,但是当我试图访问管理http://example.com/admin我收到此错误

NotFoundHttpException in RouteCollection.php line 161 

但前台工作正常。我试过在终端,但同样的问题之后

composer install 
php artisan clear--compiled 

执行以下命令我也检查了注册击溃&它的显示终端,通过使用命令

php artisan route:list 

enter image description here

这里有my route.php

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


// Logging in and out 
get('/login', 'Auth\[email protected]'); 
post('/login', 'Auth\[email protected]'); 
get('/logout', 'Auth\[email protected]'); 

Route::group(['namespace' => 'Admin','prefix' => 'admin','middleware' => 'auth',], function() { 

    resource('/', 'AdminController'); 

    resource('/countries', 'CountryController'); 

}); 

.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] 
</IfModule> 

回答

0

我已经修复了这个问题,在我的情况与.htaccess文件的问题,我在.htaccess文件&它开始为我工作改变了的BaseURL。

0

我有同样的问题,我刚刚重新启动apache,它的工作,我在Windows上。

相关问题