1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added image name editing & deleting

This commit is contained in:
Dan Brown
2015-08-16 00:18:22 +01:00
parent b0808a1c24
commit e5a372ffbd
10 changed files with 201 additions and 64 deletions

View File

@ -6,6 +6,9 @@ use Illuminate\Database\Eloquent\Model;
class Image extends Model
{
protected $fillable = ['name'];
public function getFilePath()
{
return storage_path() . $this->url;