PHP code example of milenmk / laravel-gdpr-exporter

1. Go to this page and download the library: Download milenmk/laravel-gdpr-exporter 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/ */

    

milenmk / laravel-gdpr-exporter example snippets


   // config/gdpr-exporter.php
   'relations_detection' => [
       'method' => 'whitelist',
       'whitelist' => [
           'posts', 'profile', 'roles', // Add your actual relations here
           // Don't 

   // config/gdpr-exporter.php
   'relations_detection' => [
       'method' => 'reflection',
       'excluded_methods' => [
           // ... other excluded methods
           'notifications', // Add this line
       ],
   ],
   
copy
   php artisan vendor:publish --tag=laravel-gdpr-exporter-config
   
copy
   php artisan vendor:publish --tag=laravel-gdpr-exporter-views
   
bash
   php artisan notifications:table
   php artisan migrate