<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sebastienheyd / boilerplate-email-editor example snippets
use Sebastienheyd\BoilerplateEmailEditor\Models\Email;
// Setting data
$data = ['first_name' => 'John', 'last_name' => 'Doe'];
// Sending email by his slug
Email::findBySlug('my_slug')->send('[email protected]', $data);
// Or by his id
Email::find(1)->send('[email protected]', $data);