PHP code example of timmoh / mailcoach-custom-placeholder

1. Go to this page and download the library: Download timmoh/mailcoach-custom-placeholder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

timmoh / mailcoach-custom-placeholder example snippets


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

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

<x-mailcoach::navigation-group icon="far fa-cog" :title="__('Placeholder')">
    <x-mailcoach::navigation-item :href="route('mailcoach.emailLists.placeholders', $emailList)">
        {{ __('Custom') }}
    </x-mailcoach::navigation-item>
</x-mailcoach::navigation-group>
bash
php artisan vendor:publish --tag=mailcoach-custom-placeholder-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=mailcoach-custom-placeholder
bash
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
emailLists/layouts/partials/afterLastTab.blade.php