/** * Get all maps * * @return \Illiminate\Http\JsonResponse */ public function json() { return response()->json(['data' => Map::with('content')->get()]); }