mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
25 lines
346 B
PHP
25 lines
346 B
PHP
<?php
|
|
|
|
namespace BookStack;
|
|
|
|
|
|
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;
|
|
}
|
|
}
|