app/maguttiCms/Domain/Store/Notification/NewOrderNotification.php
/**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
Get the mail representation of the notification.
@param  mixed  $notifiable
@return \Illuminate\Notifications\Messages\MailMessage
Get the mail representation of the notification . @param mixed $notifiable @return \ Illuminate \ Notifications \ Messages \ MailMessage
public function toMail($notifiable)
    {
        return (new MailMessage)
            ->subject($this->order->newOrderEmailSubject())
            ->when($this->notify_to_admin, function (MailMessage $mail) {
                return $mail->cc(config('maguttiCms.website.option.app.email_order'));
            }
            )->view(['magutti_store::emails.order-confirm-html', 'magutti_store::emails.order-confirm-plain'], ['order' => $this->order]);
    }
public function toMail ( $ notifiable ) { return ( new MailMessage ) -> subject ( $ this -> order -> newOrderEmailSubject ( ) ) -> when ( $ this -> notify_to_admin , function ( MailMessage $ mail ) { return $ mail -> cc ( config ( 'maguttiCms.website.option.app.email_order' ) ) ; } ) -> view ( [ 'magutti_store::emails.order-confirm-html' , 'magutti_store::emails.order-confirm-plain' ] , [ 'order' => $ this -> order ] ) ; }
Get the mail representation of the notification.
Get the mail representation of the notification .