PHP code example of ginkelsoft / laravel-data-retention
1. Go to this page and download the library: Download ginkelsoft/laravel-data-retention 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/ */
ginkelsoft / laravel-data-retention example snippets
use Ginkelsoft\DataRetention\Attributes\Retention;
use Ginkelsoft\DataRetention\Concerns\HasRetention;
#[Retention(period: '2 years', from: 'created_at', action: 'delete')]
class AuditEntry extends Model
{
use HasRetention;
}