5 use Illuminate\Database\Eloquent\Model;
7 class ImageRevision extends Model
10 * Relation for the user that created this entity.
11 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
13 public function createdBy()
15 return $this->belongsTo(User::class, 'created_by');
19 * Get the image that this is a revision of.
20 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
22 public function image()
24 return $this->belongsTo(Image::class);