16 lines
377 B
PHP
16 lines
377 B
PHP
<?php
|
|
|
|
namespace IriksIT\Manager\Models;
|
|
|
|
/** An earlier state of a post, a page or another record that keeps a history (module `revisions`). */
|
|
class Revision extends Model
|
|
{
|
|
/** Only `created_at`, set when the state is kept. */
|
|
public $timestamps = false;
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['data' => 'array', 'changed' => 'array'];
|
|
}
|
|
}
|