1. Go to this page and download the library: Download spinon/uccello-archive 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/ */
spinon / uccello-archive example snippets
$table->dateTime('archived_at')->nullable();
public static $ARCHIVED_AT = 'custom_fiedname';
use Spinon\UccelloArchive\Traits\ArchiveTrait;
class MyModel extends Model
{
use ArchiveTrait;
...
}