Skip to content

Commit

Permalink
Use database models rather than hardcoded shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrembilla committed Jan 2, 2025
1 parent 368c034 commit 5dadb62
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Http/Controllers/Views/Projects/LargoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,7 @@ public function index(Request $request, $id)
$patchUrlTemplate = Storage::disk(config('largo.patch_storage_disk'))
->url(':prefix/:id.'.config('largo.patch_format'));

$shapes = collect([
1 => 'Point',
2 => 'LineString',
3 => 'Polygon',
4 => 'Circle',
5 => 'Rectangle',
6 => 'Ellipse',
7 => 'WholeFrame',
]);
$shapes = Shape::pluck('name', 'id');

$usersWithAnnotations = ImageAnnotationLabel::query()
->join('image_annotations', 'image_annotations.id', '=', 'image_annotation_labels.annotation_id')
Expand Down

0 comments on commit 5dadb62

Please sign in to comment.