<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class WebSetting extends Model
{
    use HasFactory;

    public function getImageAttribute($value){
        if($value)
        {
            return url(Storage::url($value));
        }
        return '';
    }
}
