mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
16 lines
236 B
PHP
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);
|
|
}
|
|
}
|