BookStack/app/Image.php

24 lines
398 B
PHP
Raw Normal View History

2015-07-13 20:52:56 +00:00
<?php
namespace Oxbow;
use Illuminate\Database\Eloquent\Model;
class Image extends Model
{
2015-07-14 21:34:31 +00:00
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');
}
2015-07-13 20:52:56 +00:00
}