backstage / announcements
This is my package backstage-announcements
Fund package maintenance!
Requires
- php: ^8.3
- filament/filament: ^5.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^9.0|^10.0
- pestphp/pest: ^4.1
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-livewire: ^4.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- rector/rector: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 5.x-dev
- v5.10.0
- v5.9.4
- v5.9.0
- v5.8.2
- v5.8.1
- v5.8.0
- v5.7.7
- v5.7.6
- v5.7.5
- v5.7.4
- v5.7.3
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.2
- v5.6.1
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.0
- v5.2.9
- v5.2.8
- v5.2.7
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.19
- v5.1.18
- v5.1.17
- v5.1.16
- v5.1.15
- v5.1.14
- v5.1.13
- v5.1.12
- v5.1.11
- v5.1.10
- v5.1.9
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.20
- v5.0.19
- v5.0.18
- v5.0.17
- v5.0.16
- v5.0.15
- v5.0.14
- v5.0.13
- v5.0.12
- v5.0.11
- v5.0.10
- v5.0.9
- v5.0.8
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- 4.x-dev
- v4.2.10
- v4.2.9
- v4.2.8
- v4.2.7
- v4.2.6
- v4.2.5
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.5
- v4.1.4
- v4.1.3
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.15
- v4.0.14
- v4.0.13
- v4.0.12
- v4.0.11
- v4.0.10
- v4.0.9
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- 2.x-dev
- v2.0.29
- v2.0.28
- v2.0.27
- v2.0.26
- v2.0.25
- v2.0.24
- v2.0.23
- v2.0.22
- v2.0.21
- v2.0.20
- v2.0.19
- v2.0.18
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.0
- v2.0.0beta-37
- v2.0.0-beta3
- 1.x-dev
- v1.1.54
- v1.1.53
- v1.1.52
- v1.1.51
- v1.1.50
- v1.1.49
- v1.1.48
- v1.1.47
- v1.1.46
- v1.1.45
- v1.1.44
- v1.1.43
- v1.1.42
- v1.1.41
- v1.1.40
- v1.1.39
- v1.1.38
- v1.1.37
- v1.1.36
- v1.1.35
- v1.1.34
- v1.1.33
- v1.1.32
- v1.1.31
- v1.1.30
- v1.1.29
- v1.1.28
- v1.1.27
- v1.1.26
- v1.1.25
- v1.1.24
- v1.1.23
- v1.1.22
- v1.1.21
- v1.1.20
- v1.1.19
- v1.1.18
- v1.1.17
- v1.1.16
- v1.1.15
- v1.1.14
- v1.1.13
- v1.1.12
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.0.2
- v0.0.1
- dev-add-unsubscribe-date
- dev-feat/5x-formula-fillform-pdf
- dev-feat/auto-update-path-on-save
- dev-feat/mailings-cluster-navigation
- dev-feat/mcp-server
- dev-feature/ai-eleven-labs
- dev-feature/fix-hydration-fileupload-13-juli
- dev-feature/ortho-shop
- dev-feature/ux-nl-optimizations
- dev-fix-issue-95-5x
- dev-fix-mailing-pivot-foreign-keys
- dev-fix-mailing-sent-count-5x
- dev-fix-mails-routes-5x
- dev-fix/5x-legacy-form-morph-map
- dev-fix/backstage-upgrade-publishes-suite-migrations
- dev-fix/configurable-glide-driver
- dev-fix/content-actions-authorize
- dev-fix/content-depth-column
- dev-fix/fields-block-field-bridge-and-repeater-cache
- dev-fix/file-link-plugin-optional-media
- dev-fix/forms-from-name
- dev-fix/forms-migration-timestamps
- dev-fix/mails-recipient-duplication
- dev-fix/mails-route-authorization
- dev-fix/minify-preserve-response-original
- dev-fix/minify-skip-non-minifiable-responses
- dev-fix/og-image-absolute-url
- dev-fix/og-image-height
- dev-fix/security-workflow-failures
- dev-handle-inactive-recipients
- dev-hl/move-the-mcp-server-package-code
- dev-mailing-utm-tagging
- dev-speed-up-mails-list-5x
- dev-subscriber-email-validation
- dev-chore/security-workflow-hardening
- dev-chore/delete-uploadcare-packages
- dev-chore/laravel-filament-upgrade
- dev-feat/content-urls-scope
- dev-feat/restore-crop-on-original-5.x
- dev-feat/select-filter-by-field-reference
- dev-feature/backstage-support
- dev-feature/cms-error-pages
- dev-feature/components
- dev-feature/content-url-module
- dev-feature/fix-mysql-timeout
- dev-feature/media-helpers-22-juni
- dev-feature/move-country-flags-to-support
- dev-feature/static-improvements
- dev-feature/tenant-scoped-module
- dev-feature/translation-fixes-4-march
- dev-feature/workflow-fixes
- dev-fix/crop-original-disk
- dev-fix/file-upload-repeated-field-mapping
- dev-fix/file-upload-resolve-encoded-path
- dev-fix/file-upload-single-file-replace-vanish
- dev-fix/forms-filament-v5-compat
- dev-fix/language-delete-protection
- dev-fix/mails-nav-active-route-pattern
- dev-fix/media-deprecated-form-schema
- dev-fix/meta-tags-table-select-meta-tags
- dev-fix/rich-editor-repeater-slug-collision
- dev-fix/setting-hydrates-whole-setting
- dev-fix/settings-utility
- dev-plugin-class-make-upgrade
- dev-5827d013-6cc0-432f-8883-6e14692ca5a1
- dev-feat/content-link-plugin
- dev-feat/favicon-management
- dev-feat/file-upload-drop-indicators
- dev-feat/forms-fillform-pdf-and-select-filter
- dev-feat/hreflang-meta-on-page-template
- dev-feat/improve-security-workflows
- dev-feat/media-crop-sync
- dev-feat/media-management
- dev-feat/props-helpers-bindsite
- dev-feat/restore-crop-on-original
- dev-feat/security-workflows
- dev-feat/svg-viewbox-cropping
- dev-feature/integrate-forms-package
- dev-feature/shop-plugin-refinement
- dev-feature/uploadcare-like-transformations
- dev-feature/uploadcare-like-transformations-helpers
- dev-fix-issue-94
- dev-fix-issue-95
- dev-fix-mailing-sent-count
- dev-fix-mails-issue-77
- dev-fix-mails-tenant-routes-4x
- dev-fix/content-resource-null-type
- dev-fix/email-change-verification
- dev-fix/field-config-null-array
- dev-fix/field-visibility-inside-builder
- dev-fix/file-upload-accepted-types
- dev-fix/file-upload-reorder-reversed
- dev-fix/fileupload-save-resolve-path-to-ulid
- dev-fix/mails-recipient-column-bloat
- dev-fix/media-create-respects-media-model-config
- dev-fix/page-template-title-trim-og-image-height
- dev-fix/relationables-null-ulid
- dev-fix/setting-returns-media-model-and-textarea-string
- dev-fix/shop-wefact-subscription-product-sync
- dev-fix/sitemap-pretty-print-xml
- dev-fix/uploadcare-field-standalone
- dev-fix/url-trailing-slash-root
- dev-fix/v4-safe-formula-eval
- dev-port-mails-pr-70
- dev-remove-laravel-ray
- dev-d5d57415-3d60-4ca2-8154-6a57dfe630bc
- dev-feat/schema-support-for-fields
- dev-feature/parallel-tests
- dev-refactor/rename-filament-mails-to-mails
- dev-fix/security-vulnerabilities
- dev-3a441865-aa1e-43ff-be2c-56ef198d17b0
- dev-b87e9b65-3571-4c0f-b3f7-9caf2a8b0ea7
- dev-feat/robots-txt
- dev-feat/translation-improvements
- dev-fix/attachment-s3-download
- dev-fix/fileupload-validation-json-string
- dev-fix/fileupload-validation-type-error
- dev-fix/form-email-spam-improvements
- dev-fix/mailings-stats-listener-pipeline
- dev-feat/dusk-browser-tests
- dev-e56d9946-6d79-4948-baa9-ba133cd7fbbb
- dev-feat/crop-original-image
- dev-feat/crops
- dev-feat/media-picker
- dev-feat/remove-files-from-s3
- dev-feat/select-media-in-rte
- dev-feature/context-aware-hydration-contracts
- dev-feature/field-translatable-macros
- dev-feature/helpers
- dev-feature/remove-path-fields-from-meta-tab
- dev-feature/rename-filament-mails-to-mails
- dev-feature/searchable-parent-selection
- dev-feature/translations-16-feb-optimalisations
- dev-fix/add-sortable-column-indexes
- dev-fix/cropper-aspect-ratio-validation
- dev-fix/mailgun-uuid-array-return
- dev-fix/prism-meta-tags-generation
- dev-fix/redirects
- dev-fix/select-undefined-array-key
- dev-fix/status-column-sortable
- dev-fix/suppression-resource-aliasing
This package is auto-updated.
Last update: 2026-10-29 12:53:37 UTC
README
A powerful Filament plugin for managing announcements in your Laravel application. Create, manage, and display announcements with customizable scopes, colors, and navigation controls.
Installation
You can install the package via composer:
composer require backstage/announcements
Important
If you have not set up a custom theme and are using Filament Panels follow the instructions in the Filament Docs first.
After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone packages.
@source '../../../../vendor/backstage/announcements/resources/**/*.blade.php';
You can publish and run the migrations with:
php artisan vendor:publish --tag="backstage-announcements-migrations"
php artisan migrate
Note
Existing installs must publish and run the new add_display_to_announcements_table migration to use popup announcements. Existing announcements stay banners.
Optionally, you can publish the views using
php artisan vendor:publish --tag="backstage-announcements-views"
This is the contents of the published config file:
return [
];
Usage
Add the plugin to your Filament panel provider:
use Backstage\Announcements\AnnouncementsPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ AnnouncementsPlugin::make(), ]); }
Navigation Control
Control whether the announcements resource appears in the navigation menu:
AnnouncementsPlugin::make() ->canRegisterNavigation(false) // Hide from navigation
AnnouncementsPlugin::make() ->canRegisterNavigation(true) // Show in navigation (default)
Forced Scopes
Limit which scopes (resources/pages) are available when creating announcements. You can specify the full class names of resources or pages:
AnnouncementsPlugin::make() ->forceScopes([ 'App\\Filament\\Resources\\Users\\UserResource', 'App\\Filament\\Resources\\Products\\ProductResource', 'App\\Filament\\Pages\\Dashboard', ])
The plugin will automatically match these class names to the formatted scope names that appear in the dropdown, so users will see friendly names like "Users (list)" instead of the full class names. The form automatically converts between class names (stored in database) and formatted names (displayed in UI) using the formatStateUsing() method.
Creating Announcements
Once configured, you can create announcements through the Filament interface:
- Title: The announcement title
- Content: The announcement content (supports HTML)
- Scopes: Select which resources/pages the announcement should appear on
- Color: Choose a color theme for the announcement
- Display as:
Banner(default) orPopup with confirmation required
Popup announcements
Choosing Popup with confirmation required shows the announcement as a modal that blocks the page until the user clicks "I've read this". It has no close button, Esc does nothing and clicking the overlay does nothing.
- Popups are mounted on the panel's
BODY_ENDhook, one component per page, and use the package's own.ba-popup-*CSS shipped in the dist CSS. - Login, registration, password reset and any other
SimplePagescope always show a banner instead of a popup. - The popup option is disabled in the form unless at least one page other than login or registration is selected.
- When several popups apply to a page they are shown one after another, oldest first, with an "N of M" counter.
- Each confirmation is stored per user. Use the Reset dismissals action to make everyone confirm the announcement again.
- Guests never see popups.
Displaying Announcements
Announcements are automatically displayed on the selected scopes using the included Livewire component. The component handles:
- Dismissal tracking per user
- Color theming
- Responsive design
- Accessibility features
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.