Skip to content

Commit

Permalink
cr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandraKozubal committed May 13, 2024
1 parent 4ca4498 commit b40c258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/Admin/CityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use App\Http\Controllers\Controller;
use App\Http\Requests\CityRequest;
use App\Http\Resources\CityResource;
use App\Http\Resources\CityWithoutAssignedCoordinatesResources;
use App\Http\Resources\CityWithoutAssignedCoordinatesResource;
use App\Http\Resources\CityWithoutAssignedCountryResource;
use App\Http\Resources\CountryResource;
use App\Http\Resources\ProviderResource;
Expand Down Expand Up @@ -47,7 +47,7 @@ public function index(): JsonResponse
"countries" => CountryResource::collection($countries),
"citiesWithoutAssignedCountry" => CityWithoutAssignedCountryResource::collection($citiesWithoutAssignedCountry),
"citiesWithoutAssignedCountryCount" => $citiesWithoutAssignedCountry->count(),
"citiesWithoutAssignedCoordinates" => CityWithoutAssignedCoordinatesResources::collection($citiesWithoutAssignedCoordinates),
"citiesWithoutAssignedCoordinates" => CityWithoutAssignedCoordinatesResource::collection($citiesWithoutAssignedCoordinates),
"citiesWithoutAssignedCoordinatesCount" => $citiesWithoutAssignedCoordinates->count(),
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class CityWithoutAssignedCoordinatesResources extends JsonResource
class CityWithoutAssignedCoordinatesResource extends JsonResource
{
public function toArray(Request $request): array
{
Expand Down

0 comments on commit b40c258

Please sign in to comment.