我在本地主机中安装了 laravel+composer,然后尝试使用以下代码块运行基本 routes.php:
Route::get('/x', function()
{
return 'Hello World';
});
然后我尝试使用它来运行http://localhost/laravel/app/x
它http://localhost/laravel/x
我得到了这个错误类型:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.4 (Unix) PHP/5.5.3 OpenSSL/1.0.1e mod_perl/2.0.8-dev Perl/v5.16.3
我该如何克服这个问题?