The correct way to do it in Laravel is returning response()->json(...) such as: <?php return response()->json(['foo'=>'bar']);.
確定! 回上一頁