laravel / laravel/nova-issues

Cant remove images from repeater

Open
#6,750 18 comments 0 reactions 0 assignees View on GitHub
beta-feature bug
Dominant language
No language data
Stars
557
Forks
33
PR merge metrics
No merged PRs in 30d

Description

- Laravel Version: 11.0
- Nova Version: 5.0
- PHP Version: 8.3
- Database Driver & Version: mySQL 8
- Operating System and Version: macOs Sonoma 14.5
- Browser type and version: Chrome Version 133.0.6943.55 (Official Build) (x86_64)
- Reproduction Repository: -

### Description:
I have a repeater field on a Nova resource that has a text field and an image field in the repeater. Everything works except for when i try to remove the image from the repeater.

Image

The issue seems to be that the delete request url is wrong as it tries to remove a image_path field on the resource that where the repeater is placed in and not the repeater resource:
DELETE http://localhost/nova-api/polls/10/field/image_path 404 (Not Found)

I have made sure to include a ->uniqueField('id') on the repeater.

It works to upload an image in the repeater and it also works to update the textfield, its only when i try to remove an image that i get an error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing image removal from a Laravel Nova 5 repeater containing a text field and an image field, then inspect the generated DELETE request. Compare the request target with the repeater resource context; done means removing the image targets the correct repeater resource and no longer returns a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, mysql, php
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.