mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
24 lines
398 B
PHP
24 lines
398 B
PHP
<?php
|
|
|
|
namespace Oxbow;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Image extends Model
|
|
{
|
|
public function getFilePath()
|
|
{
|
|
return storage_path() . $this->url;
|
|
}
|
|
|
|
public function createdBy()
|
|
{
|
|
return $this->belongsTo('Oxbow\User', 'created_by');
|
|
}
|
|
|
|
public function updatedBy()
|
|
{
|
|
return $this->belongsTo('Oxbow\User', 'updated_by');
|
|
}
|
|
}
|