PHP code example of jsefton / laravel-mailing-list

1. Go to this page and download the library: Download jsefton/laravel-mailing-list 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/ */

    

jsefton / laravel-mailing-list example snippets


/**
 * Enable API for mailing lists to allow creation
 */
'api' => env('MAILING_LIST_API', true),

/**
 * Route for API requests (only registered if api is enabled)
 */
'route' => '/api/mailing-list'

route('api.mailing-list.subscribe', ['id' => 1])

$emails = $mailingList->emails

$list = $email->mailingList
bash
php artisan migrate
bash
php artisan mailing-list:create