Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-amp-mail maintained by mehedimi

Description
Send amp mail through laravel mail
Author
Last update
2021/07/30 13:42 (dev-master)
License
Links
Downloads
2 473

Comments
comments powered by Disqus

Laravel AMP Mail

Send amp mail through your Laravel app

Installation

composer require mehedimi/laravel-amp-mail

Quick Usages

To send amp email just use Mehedi\AmpMail\Mimes\Amp trait on your mail class and load amp view by using amp method.

Example

<?php

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');
    }
}