EscolaLMS/Images

View on GitHub
src/Models/ImageCache.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace EscolaLms\Images\Models;

use EscolaLms\Images\Database\Factories\ImageCacheFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * @property string $hash_path
 */
class ImageCache extends Model
{
    use HasFactory;

    protected $fillable = [
        'path',
        'hash_path',
    ];

    protected static function newFactory(): ImageCacheFactory
    {
        return ImageCacheFactory::new();
    }
}