Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete a image from Repeater Field when its preset format is JSON #6527

Open
Fayne opened this issue Sep 13, 2024 · 1 comment
Open
Labels
beta-feature pending Issues that are pending triage

Comments

@Fayne
Copy link

Fayne commented Sep 13, 2024

  • Laravel Version: 10.48.20
  • Nova Version: 4.35.1
  • PHP Version: 8.2.20
  • Database Driver & Version: Mysql8
  • Operating System: linux
  • Browser type: chrome

Description:

I have a repeater field which includes a Image field. The preset of this repeater field is JSON. When i try to delete a image from CMS, it shows me a 404 error.

Detailed steps to reproduce the issue on a fresh Nova installation:

Here is my Nova resource codes

// Resource code
Repeater::make('Profile')->repeatables([
    UserProfile::make(),
])->asJson(),

Here is my repeatable codes

// Repeatable code
public function fields(NovaRequest $request)
{
    return [
        Image::make('Avatar'),
    ];
}
@crynobone crynobone added beta-feature pending Issues that are pending triage labels Oct 8, 2024
@baberuth22
Copy link

baberuth22 commented Dec 30, 2024

Do you have avatar or profile in your $fillable array?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-feature pending Issues that are pending triage
Projects
None yet
Development

No branches or pull requests

3 participants