forss-it / laravel-gdpr-compliance

GDPR compliant data handling with ease
55 stars 5 forks source link

Following relations upstream #78

Open TomWhitson opened 3 years ago

TomWhitson commented 3 years ago

It looks like in the orignal repo we can follow relationships by having protected $gdprWith defined on the relationship model. This doesn't seem to work here.

On the user model i have protected $gdprWith = ['cars']

On the cars model i have protected $gdprWith = ['insurance']

When exporting the user model I just get cars and not the insruance details. it would be ideal if we could export in this way rather than defining, the user model like,

protected $gdprWith = ['cars', 'cars.insurance']