Skip to content

Commit 96f1e48

Browse files
committed
Fix a bug with user logging for pastebin
1 parent 1c39b3b commit 96f1e48

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/Lio/Bin/Paste.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Paste extends Entity {
66

77
protected $table = 'pastes';
8-
protected $fillable = ['description', 'code', 'ip', 'author_id', 'parent_id'];
8+
protected $fillable = ['description', 'code', 'ip', 'author', 'parent', 'author_id', 'parent_id'];
99
protected $with = ['comments'];
1010
protected $softDelete = true;
1111

app/Lio/Core/EloquentRepository.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
abstract class EloquentRepository
77
{
8+
/**
9+
* @var \Illuminate\Database\Eloquent\Model
10+
*/
811
protected $model;
912

1013
public function __construct($model = null)

app/Lio/Core/Entity.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php namespace Lio\Core;
22

3-
use Validator, Eloquent;
3+
use Illuminate\Database\Eloquent\Model;
4+
use Validator;
45
use Lio\Core\Exceptions\NoValidationRulesFoundException;
56
use Lio\Core\Exceptions\NoValidatorInstantiatedException;
67

7-
abstract class Entity extends Eloquent
8+
abstract class Entity extends Model
89
{
910
protected $validationRules = [];
1011
protected $validator;

0 commit comments

Comments
 (0)