21 lines
378 B
PHP
21 lines
378 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
class Image extends Model
|
|
{
|
|
use HasFactory;
|
|
use HasUUID;
|
|
public $primaryKey = "uuid";
|
|
|
|
protected $fillable = [];
|
|
|
|
public function URL()
|
|
{
|
|
return Storage::url($this->path);
|
|
}
|
|
}
|