'bool', ]; } public function scopeOrdered(Builder $query): Builder { return $query ->orderBy('sort_order') ->orderByDesc('id'); } public function scopePublished(Builder $query): Builder { return $query->where('is_published', true); } public function getImageUrlAttribute(): ?string { if (! $this->image_path) { return null; } return Storage::disk('public')->url($this->image_path); } }