X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/59367b34178739c3aedb4d21e863f3cc58401a2d..refs/pull/261/head:/app/Ownable.php diff --git a/app/Ownable.php b/app/Ownable.php index 8890c01bf..f2cfe801b 100644 --- a/app/Ownable.php +++ b/app/Ownable.php @@ -9,7 +9,7 @@ abstract class Ownable extends Model */ public function createdBy() { - return $this->belongsTo('BookStack\User', 'created_by'); + return $this->belongsTo(User::class, 'created_by'); } /** @@ -18,7 +18,7 @@ abstract class Ownable extends Model */ public function updatedBy() { - return $this->belongsTo('BookStack\User', 'updated_by'); + return $this->belongsTo(User::class, 'updated_by'); } /**