【发布时间】:2021-06-01 19:39:15
【问题描述】:
我正在尝试检查我的 Laravel 8 项目的兼容性, 我有带路由的数据表
ajax: {
url: "/detail/" + user_id,
data: function(d) {
d.kpi = $('#filter-kpi').val(),
d.search = $('input[type="search"]').val()
}
},
当我从 artisan serve 访问它时,它运行良好 (http://127.0.0.1:8000/detail/1000000004)。但是,当我在 XAMPP (http://localhost/project-management-main/public/detail/1000000004) 中使用 apache 服务器访问它时,它返回错误 Failed to load resource: the server responded with a status of 404 (Not Found)
我的路线有问题吗?
【问题讨论】:
-
这能解决你的问题吗 - .htaccess not working on localhost with XAMPP
-
我试过了,还是一样的错误
标签: ajax laravel datatable laravel-routing laravel-8