我正在运行的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和工匠没有任何连接。 –