<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Media extends Model
{
    protected $fillable = [
        'filename',
        'file_path',
        'file_type',
        'file_size',
        'alt_text',
        'disk',
    ];

    /**
     * Get the full URL of the media file.
     */
    public function getUrlAttribute()
    {
        return asset($this->file_path);
    }
}
