1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Media.php
2018-05-19 20:59:59 -06:00

16 lines
236 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Storage;
class Media extends Model
{
public function url()
{
$path = $this->media_path;
$url = Storage::url($path);
return url($url);
}
}