Comments (4)
Hi, if you don't want to anonimize relations just don't use gdprAnonymizableFields attribute in the related models, The anonymize function will do the job, looping through all related models, only if gdprAnonymizableFields attribute is not null.
from laravel-gdpr-compliance.
@mgc2222 That throws an error.
As a workaround I did this and nothing more:
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Dialect\Gdpr\Anonymizable; <<<<<=====
class ModelName extends Model {
use Anonymizable; <<<<<=====
protected $fillable = [
'field'
];
protected $table = 'modelname';
}
from laravel-gdpr-compliance.
I guess the another solution to this is:
protected $gdprWith = null;
from laravel-gdpr-compliance.
But now everything works without, dont know why I this was a issue in the first place. Closing.
from laravel-gdpr-compliance.
Related Issues (15)
- artisan route:list gives an error HOT 2
- Shouldn't assume standard app:name HOT 2
- Schedule overwrites all other schedules HOT 3
- Package not installing with Laravel 5.7 HOT 2
- AnonymizeInactiveUsers-command fails when non-default app:name i set HOT 2
- Running gdpr:anonymizeInactiveUsers does not set isAnonymized HOT 2
- README instructions contain a typo HOT 1
- Suggestion: change boolean 'isAnonymized' to datetime-field 'anonymized_at' HOT 2
- Attributes are not decrypted on the fly
- Over API
- Laravel 8 Support HOT 1
- Download associated files HOT 3
- Following relations upstream
- Redirect to original page from termsAccepted HOT 1
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-gdpr-compliance.