Comments (7)
Alright, I found the error (Nova was updated and not sending Models back from the Update/Create requests). Can you try to update the package to 2.0.4 and tell me if that works?
from laravel-nova-nested-form.
@yassipad Cheers, mate! Seems to be working fine now with some quick testing.
from laravel-nova-nested-form.
Update: If I try to delete all the nested items, it works. Just doesn't work if I try to delete only one on a list with more than one.
from laravel-nova-nested-form.
Any solution to this?
Im facing the exact same problem.
from laravel-nova-nested-form.
Any solution to this?
Im facing the exact same problem.
Sorry mate, no luck on this end so far. I confess I haven't had enough time to look at the source to see what might cause this to provide some more insight, though.
from laravel-nova-nested-form.
Hi,
Sorry for the late reply. I assume you're both using the latest package version? Do you have event hooks (::saved, ::created or ::deleted) on your models? Do you have special policies? If the nested resources are not being deleted, it means somehow they are being sent for update because they were modified, is there any chance some value on your models is being changed before being displayed?
from laravel-nova-nested-form.
Hey,
I am using version 2.0.2. I am not using event hooks. Here is the model:
namespace App;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
class SolutionHighlights extends Model
{
use HasTranslations;
public $translatable = ['title', 'content'];
protected $casts = [
'property_id' => 'array',
];
protected $appends = ['properties'];
public function getPropertiesAttribute()
{
return Property::find($this->property_id);
}
public function solution()
{
return $this->belongsTo(Solution::class);
}
}
Nothing out of the ordinary other than the translation package from spatie.
from laravel-nova-nested-form.
Related Issues (20)
- Global search is broken, when using NestedForm HOT 4
- Changing text when there is no data HOT 2
- Multiple subresources are created when Observer saves main resource again HOT 2
- How to pass a parameter to child nested form? HOT 7
- Help text is not displayed HOT 6
- The nested relationship model is often not yet available in the parent object observer created() method
- What's the best way to translate things in LNNF HOT 2
- Second nested form display index incorrect
- Nested form validation not working. HOT 1
- Nested Form not working after update laravel 7 and nova 3
- defining the inverse - Whats's wrong? HOT 2
- Touch related items
- Is there anyway to override file field
- Support for Laravel Nova Advanced media library HOT 2
- Slow result rendring while using with BelongsTo field
- Support for Laravel Nova 4 HOT 15
- How to hide relationship column
- Question: is it possible to show related resources not only when editing, but when viewing main resource too?
- Trying to get property 'resourceClass' of non-object
- The Add new Record button is not adding the correct index
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-nova-nested-form.