1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Media.php

17 lines
236 B
PHP
Raw Normal View History

2018-04-16 01:26:48 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
2018-05-20 02:59:59 +00:00
use Storage;
2018-04-16 01:26:48 +00:00
class Media extends Model
{
2018-05-20 02:59:59 +00:00
public function url()
{
$path = $this->media_path;
$url = Storage::url($path);
return url($url);
}
2018-04-16 01:26:48 +00:00
}