AddOn Spatie's awesome Mailcoach (https://mailcoach.app/): Use custom placeholder like ::foo:: invidual in every email List.
You can install the package via composer:
composer require timmoh/mailcoach-custom-placeholder
Publish migrations & migrate.
php artisan vendor:publish --tag=mailcoach-custom-placeholder-migrations
php artisan migrate
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
File: App\Providers\RouteServiceProvider
public function map() {
...
Route::mailcoachCustomPlaceholder($webPrefix);
//or
Route::mailcoachCustomPlaceholder('mailcoach');
...
}
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>
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email timo@doersching.net instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.