mydnic / laravel-subscribers

Easily Manage Internal Newsletter Subscribers in Laravel


Manage Internal Newsletter Subscribers With Laravel

Latest Version on Packagist
Software License
Build Status
Code Quality


You may use Composer to Install Laravel Subscribers:

composer require mydnic/laravel-subscribers

The package will automatically register itself

You then must publish the migration with:

php artisan vendor:publish --provider="Mydnic\Subscribers\SubscribersServiceProvider" --tag="subscribers-migrations"


In your view, you simply need to add a form that you can customize the way you want

<form action="{{ route('') }}" method="post">
    <input type="email" name="email">
    <input type="submit" value="submit">

@if (session('subscribed'))
    <div class="alert alert-success">
        {{ session('subscribed') }}


Simply provide this link to your subscribers:

<a href="{{ route('subscribers.delete', ['email' => $subscriber->email]) }}">unsubscribe</a>

This will generate a link like /subscribers/[email protected]