FEATURE #1372: add feature for editing static pages.
User can edit static pages. The edit itself also stores history of changed columns.
This commit is contained in:
@@ -9,13 +9,14 @@ use Illuminate\Database\Eloquent\Model;
|
||||
*/
|
||||
class ContentHistory extends Model
|
||||
{
|
||||
protected $table = 'content_history';
|
||||
|
||||
public $timestamps = true;
|
||||
// this table does not have created_at and updated_at fields
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'content_id',
|
||||
'changed_at',
|
||||
'edit_batch',
|
||||
'column',
|
||||
'new_value',
|
||||
|
||||
Reference in New Issue
Block a user