mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 12:16:07 +00:00
25 lines
342 B
PHP
25 lines
342 B
PHP
<?php
|
|
|
|
namespace Oxbow;
|
|
|
|
|
|
class Image extends Entity
|
|
{
|
|
|
|
protected $fillable = ['name'];
|
|
|
|
public function getFilePath()
|
|
{
|
|
return storage_path() . $this->url;
|
|
}
|
|
|
|
/**
|
|
* Get the url for this item.
|
|
* @return string
|
|
*/
|
|
public function getUrl()
|
|
{
|
|
return public_path() . $this->url;
|
|
}
|
|
}
|