我的index.php页面可以完美地工作,但当我想转到另一个页面时,比如“关于我们”页面,我在7610行有compiled.php中的NotFoundHttpException。
我的路由是这样的:
Route::get('about', 'AboutController@index');我的控制器是:
class AboutController extends Controller {
public function index()
{
return view('template.aboutUs.about');
}
}我已经在Wamp上启用了重写模块。
我用的是Windows7。
发布于 2015-03-23 01:51:44
您可能应该在控制台中运行:
php artisan route:clear清除缓存的路由文件。
发布于 2015-06-24 12:58:58
根据您在XAMPP\apache\conf\httpd.conf中的项目移除fallowing虚拟目录
<VirtualHost *:80>
DocumentRoot "F:\xampp\htdocs\larvel\col_att\public"
ServerName shah_larvel.dev
</VirtualHost>https://stackoverflow.com/questions/29197714
复制相似问题