我从LengthAwarePaginator返回JSON,但是JSON的data属性不是数组。我需要它是一个数组。有什么想法吗?$pageSize) {}
// slice full arrayreturn new LengthAwarePaginator($itemsForCurrentPage, count($this->o
我正试着向拉勒维尔提出json的职位要求。但是,当我试图访问获得的属性:“试图获取非对象的属性”时,请求将在服务器上接收。在客户端我用的是天使。Clockwork::info($data->id); **//"Trying to get property of non-object".**注意:我可以在Fiddler中看到正在发送的JSONpost请求本身(如Fiddler所见)Accept: application/json, text/plai