]> BookStack Code Mirror - bookstack/blobdiff - app/Ownable.php
settings.php: add missing french translation
[bookstack] / app / Ownable.php
index 28d55c2bb98156cb08a4b6e2e44842270f4bbe99..f2cfe801b8a98e6e13349479c5834d16919be488 100644 (file)
@@ -1,6 +1,5 @@
 <?php namespace BookStack;
 
-use Illuminate\Database\Eloquent\Model;
 
 abstract class Ownable extends Model
 {
@@ -10,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');
     }
 
     /**
@@ -19,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');
     }
 
     /**