PHP code example of subdesign / laravel-gdpr-nullify

1. Go to this page and download the library: Download subdesign/laravel-gdpr-nullify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

subdesign / laravel-gdpr-nullify example snippets


use Subdesign\LaravelGdprNullify\GdprNullifyTrait;

class YourModel extends Model {

    use GdprNullifyTrait;

    ...
}

protected $gdprFields = ['name', 'email'];


$user = App\User::find(1);

$user->nullify();