Files
lelong/app/Mail/NotifyAdmin.php
T

37 lines
803 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class NotifyAdmin extends Mailable
{
use Queueable, SerializesModels;
public $content_collection;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($content_collection)
{
$this->content_collection = $content_collection;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->from('masterlelongpkb@gmail.com', 'Admin ArrahnBid')
->subject('ArrahnBid - '.$this->content_collection['description'])
->view('template.notifyadmin', ['content_collection' => $this->content_collection]);
}
}