sander3 / laravel-gdpr Goto Github PK
View Code? Open in Web Editor NEWGDPR compliance with ease.
License: MIT License
GDPR compliance with ease.
License: MIT License
In my user model I set the "name" column to be encrypted.
How can I do something like:
$user->where('name', 'john');
Hi Sander,
Can you please add support for Laravel 6?
Thanks! :)
when removing the package via composer you get the following messages:
soved/laravel-gdpr is not required in your composer.json and has not been removed
Dependency "laravel/framework" is also a root requirement, but is not explicitly whitelisted. Ignoring.
It's odd to get a message about removing laravel framework ?
Hi
Please add laravel 10 support
Hi, I have my own user model, How to overwrite App\User model to App\Models\User?
Laravel 8 introduced the possibility to have a Models folder inside the app directory.
Currently, the package imports App\User but if the User.php file is in the Models directory the correct namespace is App\Models\User. This raises an exception.
Hello,
Is it possible to implement data download inside a Laravel-Inertia application?
Thanks a lot in advance
Question received via email.
Hi,
We have added https://github.com/sander3/laravel-gdpr this package in a local project. Can you tell me how to test to verify the install successfully ?.
--
Thanks & Regards
Ashutosh *****
Mob No:- **********
Dear,
Is it possible to login using an encrypted email? Because the login doesn't run over the User model and gets the email attribute. Is there a way to achieve this?
Are there any plans to update this to Laravel 8?
Hello,
I'm newbie in laravel and sure that the problem is that I dont know how to use.
I've installed the package and make a get web url endpoint that execute a post API call to /gdpr/download endpoint.
Route::get('/gdpr', function () { $response = Http::post('http://mywebpage.test/gdpr/download', [ Auth::user()->password, ]); dd($response); });
I've dd the response and status 200 is returned but no data :(
Could please help me? Thanks a lot.
Given that a User has a relationship with Restaurant
, and Restaurant
has many MenuItems
, how are we able to retrieve the MenuItems
for that Restaurant
?
I have tried making Restaurant
Portable
and defining with $gdprWith
for that model, but that does not work.
As well, it appears as though all properties on a model with a relationship (Restaurant
in this case) will be visible, regardless of making the Restaurant
model Portable
and assigning $gdprVisible
property to exclude things like id
, hash
, etc. Will be opening a separate bug for this.
I've user model and a relationships with another model. when use Lazy Eager Loading Relationships and in the relation model use gdprHidden, the fields are not hidden
How am I able to retrieve the encrypted attribute decrypted through the HTTP request user object?
Like so: $request->user();
Currently I noticed that I just retrieve the not decrypted attribute.
Hello,
The downloaded file is name user.json, anyway to dynamically change (like real_user_name.json) ?
Thanks,
Denis
Data encryption works just fine on newer inserted data.
But how can I apply the encryption on already existing data?
Also, what data type should I use for encrypted columns?
Hi there,
Automatic decryption of values only works when accessing model attributes like this:
$model->attribute
However, returning a model instance or using $model->toArray()
returns encrypted values.
Any suggestions?
Hi,
I have stored some encrypted data in my db.
Now I need to create API, but all values return encrypted.
Is there a way to decrypt data?
Thank you
Are there any plans to update this to Laravel 9?
In my User
model I have protected $gdprVisible = ['name', 'email'];
, yet in the JSON output I see
{"id":22,"name":"John Doe","email":"[email protected]","created_at":"2018-07-09 14:52:02","updated_at":"2018-07-09 14:52:02","stripe_id":null,"card_brand":null,"card_last_four":null,"trial_ends_at":null,"provider":null,"provider_id":null}
The docs say that anything NOT in the white-list will be hidden, but I don't see this as being the case.
Also, any models included via relationship are also displaying their entire contents.
In order to enable people to customize the failed login response we should replace the abort_unless() call with a controller method.
When attempting to run composer require soved/laravel-gdpr
, I'm getting an error saying that the operation failed because the packagist json file for this package couldn't be found.
[Composer\Downloader\TransportException]
The "http://packagist.org/p/soved/laravel-gdpr%241e01b0addbc1e9551aefb73142b21f1a1c80109f7db96f8b112a589e5efd66e2.json" file could not be downloaded (HTTP/1.1 404 Not Found)
This may be an issue on my end, but while I investigate I thought I would bring it to your attention so you can look into this.
Thanks.
Hello,
Thanks for this great package !
I tried to hide some of the relationship attributes by using your $gdprVisible property with just the fields I want visible, working ok for the User model but not for the relationships.
(I tried to add some of the relationship attributes like 'bookings.name' in $gdprVisible, but it's not working)
Anyway to do that ?
Thanks, Denis
As requested by #14.
Notes to self:
portable()
new loadMissing()
Portable
contract[]->getRelated()
If a user has to enter a password to download their data, how do plan (if not already) to handle the case where a user signed up via Facebook or other OAuth service? In most of these cases, a password will not be set for the user, or a randomly generated password will be set at the time of account creation.
Hi, I am not able to hide specific attributes from relations. I have tried the following:
in User
set $gdprHidden = ['relation.attribute']
Add Portable
trait to Relation
and inside it set $gdprHidden = ['attribute']
What am I missing? Thank you.
I see there's already a pull request for that. Any idea when it might get merged?
Hi Guys
I have some error when I try to get user by email
Have settings below
use EncryptsAttributes
protected $encrypted = [ 'email'];
I made query User::where(['email' => '[email protected]'])->first();
It doesn't wwork
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.