May 7, 2018
0
Level 1
why Lumen envolves json response inner two arrays [0]
when Response::json( [ 'data' => 1] ) laravel return {data:1}
but in Lumen response()->json( ['data' => 1] ) return [[{data:1}]] nested enclosed into two arrays
why?
Is there any lumen/laravel method for clear this extra arrays?
Please or to participate in this conversation.