You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
603 B

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class OrderPlaced extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
protected $o_id;
public function __construct($o_id)
{
$this->o_id = $o_id;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$o_id = $this->o_id;
return $this->view('email-templates.order-placed',['id'=>$o_id]);
}
}