27 lines
566 B
PHP
27 lines
566 B
PHP
<?php
|
|
|
|
namespace BookStack;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ImageRevision extends Model
|
|
{
|
|
/**
|
|
* Relation for the user that created this entity.
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function createdBy()
|
|
{
|
|
return $this->belongsTo(User::class, 'created_by');
|
|
}
|
|
|
|
/**
|
|
* Get the image that this is a revision of.
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function image()
|
|
{
|
|
return $this->belongsTo(Image::class);
|
|
}
|
|
}
|