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

Using Filepond's "fillAttribute" function does not work as expected #50

Open
joserick opened this issue Sep 18, 2024 · 0 comments
Open

Comments

@joserick
Copy link

Hi,

I'm using Filepond for a SettingResource, this calls the fill() function which calls the fillAttribute() function for storage using Nova's "Fluent" class:

SettingResource Line 107

$tempResource = new \Laravel\Nova\Support\Fluent;
$field->fill($request, $tempResource); // <-- $field: Filepond

$settingsClass->{$field->attribute} = $tempResource->{$field->attribute};

But when storing the $request values:
image

using Filepond's fillAttribute() alias fill() function to fill the $tempResource (Fluent of Nova) it stores them differently:
image

which is why it does not store anything since $tempResource->banners is empty:

$settingsClass->{$field->attribute} = $tempResource->{$field->attribute};
// $settingsClass->banners = $tempResource->banners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant