PHP code example of asahasrabuddhe / laravel-mjml
1. Go to this page and download the library: Download asahasrabuddhe/laravel-mjml 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/ */
asahasrabuddhe / laravel-mjml example snippets
public function build()
{
return $this->mjml('view.name')
}
public function content()
{
return new Content(
view: $this->mjml('view.name')->buildMjmlView()['html'],
);
}