PHP code example of concept7 / laravel-sendinblue
1. Go to this page and download the library: Download concept7/laravel-sendinblue 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/ */
concept7 / laravel-sendinblue example snippets
artisan make:mail
use Concept7\LaravelSendinblue\Sendinblue;
class MyMailable extends Mailable
{
use Queueable,
SerializesModels,
Sendinblue;
/**
* Build the message
*/
public function build()
{
return $this
->to()
->sendinblue([
'template_id' => 1,
'params' => [
// insert parameters here
]
]);
}
}