ArtisanPack UI
DocsSEOEvents

Events

SEO v1.9.0

ArtisanPack UI SEO doesn't dispatch Laravel events. To change what the package outputs, use the filter hooks. To react to changes in your own data, use...

ArtisanPack UI SEO doesn't dispatch Laravel events. To change what the package outputs, use the filter hooks. To react to changes in your own data, use your models' events or observers.

The Livewire components do dispatch browser events, which you can listen for from Livewire or Alpine.

Livewire Events

Event Component Payload
seo-meta-saved SEO Meta Editor id
seo-analysis-complete SEO Meta Editor results
hreflang-saved Hreflang Editor count
hreflang-cleared Hreflang Editor None
notify Redirect Manager and others message
seo-ai-title-selected AI Meta Title Suggestor title
seo-ai-description-selected AI Meta Description Suggestor description
seo-ai-schema-selected AI Schema Suggestor type

The AI components listen for seo-ai-context-updated, and the SEO Meta Editor listens for media-selected from the media library.

<div x-data x-on:seo-meta-saved.window="console.log($event.detail.id)">
    <livewire:seo::seo-meta-editor :model="$post" />
</div>

Next Steps

Stay in the Loop

Monthly tips, tutorials and package updates — plus a free Quick Start cheat sheet.

Subscribe
Edit this page on GitHub