Files
core/app/Models/ContentHistory.php
T
Michal Kváček 73ff4e9331 FEATURE #1372: add feature for editing static pages.
User can edit static pages. The edit itself also stores history of changed columns.
2016-01-28 15:51:41 +01:00

29 lines
479 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class ContentHistory
*/
class ContentHistory extends Model
{
protected $table = 'content_history';
// this table does not have created_at and updated_at fields
public $timestamps = false;
protected $fillable = [
'user_id',
'content_id',
'edit_batch',
'column',
'new_value',
'old_value'
];
protected $guarded = [];
}