/
home
/
obinna
/
html
/
cravings
/
app
/
Mail
/
Upload File
HOME
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class NewReview extends Mailable { use Queueable, SerializesModels; private $review; /** * Create a new message instance. * * @return void */ public function __construct($review) { $this->review = $review; } /** * Build the message. * * @return $this */ public function build() { return $this->from('hello@cravvings.com', 'Cravvings Alerts') ->subject('New Review') ->view('emails.alerts.new_review') ->with([ "name" => $this->review['nickname'], "place" => $this->review['place_name'], "rate" => $this->review['rate'], "comment" => $this->review['comment'], "food" => $this->review['food_name'] ]); } }