当前位置:Gxlcms > PHP教程 > Laravel5.0url与目录的关系?

Laravel5.0url与目录的关系?

时间:2021-07-01 10:21:17 帮助过:18人阅读

访问的url:http://test.runcam.com/download
路由:

Route::get('download', function(){
    return view('download');
});

目录结构

出错:

出现同名的目录,就出现错误了?为什么?

已经百度到答案:https://sosonemo.me/laravel-route-pitfall.html

这个问题已被关闭,原因:

回复内容:

访问的url:http://test.runcam.com/download
路由:

Route::get('download', function(){
    return view('download');
});

目录结构

出错:

出现同名的目录,就出现错误了?为什么?

已经百度到答案:https://sosonemo.me/laravel-route-pitfall.html

那我就不回答了。。

人气教程排行