Vardkin / mailcoach-custom-placeholder

AddOn Spatie's awesome Mailcoach (https://mailcoach.app/): Use custom placeholder like ::foo:: invidual in every email List.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailcoach Custom Placeholder

Latest Version on Packagist Test Status Code Style Status Total Downloads

AddOn Spatie's awesome Mailcoach (https://mailcoach.app/): Use custom placeholder like ::foo:: invidual in every email List.

Installation

You can install the package via composer:

composer require timmoh/mailcoach-custom-placeholder

Prepare Database:

Publish migrations & migrate.

php artisan vendor:publish --tag=mailcoach-custom-placeholder-migrations
php artisan migrate

Publish Resources:

All Resources:

php artisan vendor:publish --tag=mailcoach-custom-placeholder

Or Single:

php artisan vendor:publish --tag=mailcoach-custom-placeholder-views
php artisan vendor:publish --tag=mailcoach-custom-placeholder-config
php artisan vendor:publish --tag=mailcoach-custom-placeholder-lang

Add Route

File: App\Providers\RouteServiceProvider

public function map() {
...
Route::mailcoachCustomPlaceholder($webPrefix);
//or
Route::mailcoachCustomPlaceholder('mailcoach');
...
}

Usage

Add EmailListPlaceholderReplacer::class to config/mailcoach.php

'replacers' => [
     \Timmoh\MailcoachCustomPlaceholder\Support\Replacers\EmailListPlaceholderReplacer::class,
    ...
],

Extend Email List View: (emailLists/layouts/partials/afterLastTab.blade.php)

<x-navigation-item :href="route('mailcoach.emailLists.placeholders', $emailList)">
    <x-icon-label icon="fa-exchange-alt" text="Placeholders" />
</x-navigation-item>

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 timo@doersching.net instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

About

AddOn Spatie's awesome Mailcoach (https://mailcoach.app/): Use custom placeholder like ::foo:: invidual in every email List.

License:MIT License


Languages

Language:PHP 69.8%Language:Blade 30.2%