|Avatar newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Avatar newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Avatar onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|Avatar query() * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereCdnUrl($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereChangeCount($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereIsRemote($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereLastFetchedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereLastProcessedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereMediaPath($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereProfileId($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereRemoteUrl($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereSize($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Avatar withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|Avatar withoutTrashed() * * @mixin \Eloquent */ class Avatar extends Model { use SoftDeletes; protected $guarded = []; protected function casts(): array { return [ 'deleted_at' => 'datetime', 'last_fetched_at' => 'datetime', 'last_processed_at' => 'datetime', ]; } protected $visible = [ 'id', 'profile_id', 'media_path', 'size', ]; public function profile() { return $this->belongsTo(Profile::class); } }