]> BookStack Code Mirror - bookstack/blob - app/Image.php
Added mulit image-type compatability to manager & app and added scaled image selection
[bookstack] / app / Image.php
1 <?php
2
3 namespace BookStack;
4
5
6 class Image extends Entity
7 {
8
9     protected $fillable = ['name'];
10
11     public function getFilePath()
12     {
13         return storage_path() . $this->url;
14     }
15
16     /**
17      * Get the url for this item.
18      * @return string
19      */
20     public function getUrl()
21     {
22         return public_path() . $this->url;
23     }
24 }