adminetic/newsletter

Newsletter Module For Adminetic Admin Panel

v1.0.0 2024-05-15 12:20 UTC

This package is auto-updated.

Last update: 2024-11-15 13:18:32 UTC


README

Adminetic Newsletter Module

Latest Version on Packagist

Stars Downloads StyleCI License

Newsletter module for Adminetic Admin Panel

For detailed documentation visit Adminetic Newsletter Module Documentation

Install

composer require adminetic/newsletter

Publish Resources

php artisan vendor:publish --tag=newsletter-config
php artisan vendor:publish --tag=newsletter-migrations

Migrate

php artisan migrate

Uses

Display Subscriber Panel

@livewire('subscriber-panel')

Subscribe and unsubscribe an email

subscribe('johndoe@test.com'); //subscribe
unsubscribe('johndoe@test.com'); //unsubscribe

Subscribe Model Methods

$subscriber = Adminetic\Newsletter\Models\Admin\Subscriber::first();
$subscriber->subscribe();
$subscriber->unsubscribe();
$subscriber->verify();
$subscriber->unverify();

Subscribe Verification Email

Note : Only works when config newsletter.subscription_mail is set to true

$subscriber = Adminetic\Newsletter\Models\Admin\Subscriber::first();
$subscriber->send_subscription_notification_email()

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email pratikdai404@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Screenshots

Newsletter Panel

Unsubscribe Panel