PHP code example of mehedimi / laravel-amp-mail
1. Go to this page and download the library: Download mehedimi/laravel-amp-mail 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/ */
mehedimi / laravel-amp-mail example snippets
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Mehedi\AmpMail\Mimes\Amp;
class WelcomeEmail extends Mailable
{
use Queueable, SerializesModels, Amp;
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->amp('amp')
->view('html')
->with('name', 'Mehedi Hasan');
}
}