PHP code example of skaisser / larasendy

1. Go to this page and download the library: Download skaisser/larasendy 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/ */

    

skaisser / larasendy example snippets


use Skaisser\LaraSendy\Traits\SendySubscriber;

class User extends Model
{
    use SendySubscriber;
}

'fields_mapping' => [
    'email' => 'email',
    'name' => 'name',
    'company' => 'company',
    'country' => 'country'
]
bash
php artisan vendor:publish --provider="Skaisser\LaraSendy\LaraSendyServiceProvider"
bash
php artisan sendy:sync