API -Antwort in JSON Laravel

return response()->json($array);
MaestroError