Upgrading
This guide outlines the steps required to upgrade from a previous version of the package.
Upgrading from Version 1.x to 2.x
Version 2.x introduces support for mail tracking via the jdavidbakr/mail-tracker
package.
Additionally, custom placeholders are now supported for template and campaign content, allowing for greater flexibility and personalization.
Steps for Upgrading
-
Backup Your Configuration
Back up your existingconfig/filament-newsletter.php
file to preserve any customizations. After backing up, delete the file to ensure the new configuration is applied correctly. -
Publish the Mail Tracker Resources
Publish the configuration file and migrations for the mail tracker package:php artisan vendor:publish --provider="jdavidbakr\MailTracker\MailTrackerServiceProvider"
-
Publish and Run New Migrations
Publish the necessary migrations and apply them to your database:php artisan vendor:publish --tag="filament-newsletter-migrations" php artisan migrate
-
Publish the Configuration File
Publish the updated configuration file for the newsletter package:php artisan vendor:publish --tag="filament-newsletter-config"
By following these steps, you can successfully upgrade to version 2.x while ensuring all new features and configurations are properly integrated.