2016-03-28 44 views
-1

我有一個laravel(4.2)應用程序,我嘗試在本地系統中配置我收到以下錯誤。Laravel應用程序配置問題

圖片:

Not found http exception

fatel error application

在配置應用程序我應該怎麼錯過。

這裏是我的航線/app/routes.php文件夾


<?php 
 
Route::group(array("prefix" => "api"), function() 
 
{ 
 
    Route::resource('user', 'UserController'); 
 
    Route::get('user/verify/{confirmation_code}', '[email protected]'); 
 
    Route::post('user/login', '[email protected]'); 
 
    Route::post('user/guest', '[email protected]'); 
 
    Route::post('user/update', '[email protected]'); 
 
    Route::post('user/change_password', '[email protected]'); 
 
    Route::get('user/reset_password/{code}', '[email protected]'); 
 
    Route::post('user/forgot_password', '[email protected]'); 
 
    Route::resource('feedback', 'FeedbackController'); 
 
    Route::group(array("before" => "auth.basic"), function() { 
 
    Route::get('user/cio/favpoint/{id}', '[email protected]'); 
 
    Route::post('user/cio/favpoint', '[email protected]'); 
 
    Route::get('user/cio/favpoint', '[email protected]'); 
 
    Route::post('user/cio/favpoint/edit', '[email protected]'); 
 
    Route::get('user/citizen/favpoint/{id}', '[email protected]'); 
 
    Route::post('user/citizen/favpoint', '[email protected]'); 
 
    Route::get('user/citizen/favpoint', '[email protected]'); 
 
    Route::post('user/citizen/favpoint/edit', '[email protected]'); 
 
    Route::get('url', '[email protected]'); 
 
    }); 
 
}); 
 
?>

+0

你嘗試'作曲家安裝'? – Vagabond

+0

我試着與作曲家,我刪除了供應商文件夾,並使用作曲家安裝,沒有結果.. – ubuntuUser

+0

第一個錯誤意味着laravel被告知去一個沒有定義的路線。所以對於那個需要通過routes.php。 就第二個錯誤而言,這意味着Laravel期待在ServiceProvider中找到它找不到的類。 讓我們一個一個解決您的問題。 你能分享你的routes.php嗎? – Vagabond

回答

0

的 'NotFoundHttpException' 是指Laravel無法找到該請求路由。

我希望你在windows機器上使用它。你有沒有設置虛擬主機來運行laravel?

我覺得這個問題適用於虛擬主機。請檢查它