BookStack/app/Image.php
2015-09-10 19:31:09 +01:00

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;
}
}