]> BookStack Code Mirror - bookstack/blobdiff - app/Entity.php
Added an image service and facade, Cleaned Image Model
[bookstack] / app / Entity.php
index 26878042e5bbca8c51edad3d18236ac00eb6b953..5ccc016a330a897b45742b1e42920b57533a9bfe 100644 (file)
@@ -7,23 +7,7 @@ use Illuminate\Database\Eloquent\Model;
 abstract class Entity extends Model
 {
 
-    /**
-     * Relation for the user that created this entity.
-     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
-     */
-    public function createdBy()
-    {
-        return $this->belongsTo('BookStack\User', 'created_by');
-    }
-
-    /**
-     * Relation for the user that updated this entity.
-     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
-     */
-    public function updatedBy()
-    {
-        return $this->belongsTo('BookStack\User', 'updated_by');
-    }
+    use Ownable;
 
     /**
      * Compares this entity to another given entity.