正在发送表单数据,但未发送js变量$('#form').submit(function(e){ var hash = '9999';$('#form').append('hash', hash);
var form_input = $('#form').serialize()+'&_token={{csrf_token()}}'
我正在使用Laravel5.5和Vue.js 2.0example.com/items当我直接打开这个url example.com/items时,它只显示我从Laravel获得的json响应,而没有在html (Vue.js)中创建任何视图。更新的这里是我的Vue routes.js文件
import Example from '.component: DisplayItem
Laravel的新安装-尝试重新安装并运行composer更新-同样的问题。Laravel api项目会随机返回"Method Illuminate\Support\Carbon::getTimestamp is not exist“。在ajax调用之后,在单独的vue.js客户端项目中从axios调用。并不是每个请求都会发生这种情况。我将非常感谢任何人的帮助。