X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/59367b34178739c3aedb4d21e863f3cc58401a2d..refs/pull/1881/head:/app/Ownable.php diff --git a/app/Ownable.php b/app/Ownable.php index 8890c01bf..e660a0500 100644 --- a/app/Ownable.php +++ b/app/Ownable.php @@ -1,5 +1,6 @@ belongsTo('BookStack\User', 'created_by'); + return $this->belongsTo(User::class, 'created_by'); } /** @@ -18,7 +19,7 @@ abstract class Ownable extends Model */ public function updatedBy() { - return $this->belongsTo('BookStack\User', 'updated_by'); + return $this->belongsTo(User::class, 'updated_by'); } /** @@ -29,5 +30,4 @@ abstract class Ownable extends Model { return strtolower(array_slice(explode('\\', static::class), -1, 1)[0]); } - -} \ No newline at end of file +}