mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-09-17 23:05:47 +00:00
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);
|
||
|
}
|
||
|
}
|