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:
Michal Kváček
2016-01-28 15:51:41 +01:00
parent 1b2d7db8f3
commit 73ff4e9331
8 changed files with 341 additions and 5 deletions
+3 -2
View File
@@ -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',