讨论数量:
public function home(){
$flights = WikiBook::all();
$a = json_encode($flights,JSON_UNESCAPED_SLASHES);
return response($a, 200)->header('Content-Type', 'application/json');
}
只能够这样不转义,但是并不优雅。有更好的解答么?
推荐文章: