我正在運行的XAMPP laravel和我有問題,訪問的網頁, http://localhost/laravel/public/
我得到一個登錄頁面,這是很好 但是當我去例如http://localhost/laravel/public/smokeyard
XAMPP本地主機不工作
我得到404
誤差The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
路線:
Route::get('smokeyard', '[email protected]');
控制器:
function smokeyard(){
return view('smokeyard');
}
我的所有視圖都位於資源文件夾中。
1.檢查Apache的mod_rewrite的啓用網址。 2.從cmd轉到您的項目文件夾。運行--php artisan serve命令並運行你的本地環境http:// localhost:8000 - 你的所有路徑都可以運行 3. use:public/index.php/。 –
如果您使用php artisan serve,它仍然使用xampp的mysql模塊嗎? – Przemek
是的mysql和工匠沒有任何連接。 –