You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to save all images to one json column(custom_images),
But the following error is occurring.
Unable to parse incoming Flexible content, data should be an array. at /var/www/vhosts/4kvin.com/httpdocs/vendor/whitecube/nova-flexible-content/src/Flexible.php:409)
Car.php
public function image(): HasOne
{
return $this->hasOne(Image::class)->latestOfMany();
}
Image.php
protected $casts = [
'custom_images' => 'array',
];
public function car(): BelongsTo
{
return $this->belongsTo(Car::class);
}
CarResource.php
public function fields(NovaRequest $request)
{
return [
ID::make()->sortable(),
HasOne::make('Images', 'image', ImageResource::class),
];
}
I want to save all images to one json column(custom_images),
But the following error is occurring.
Unable to parse incoming Flexible content, data should be an array. at /var/www/vhosts/4kvin.com/httpdocs/vendor/whitecube/nova-flexible-content/src/Flexible.php:409)
Car.php
Image.php
CarResource.php
ImageResource.php
Laravel 10.10
Nova 4.35
nova-flexible-content 1.1.1
The text was updated successfully, but these errors were encountered: