Get the mail representation of the notification.

@param  mixed $notifiable
@return \Illuminate\Notifications\Messages\MailMessage
426669
public function toMail($notifiable)
    {
        return (new MailMessage)->subject('Please confirm your account')
            ->greeting("Dear {$notifiable->firstname}")
            ->line("Thank you for registering at <strong>" . config('app.name') . '</strong>.')
            ->line("&nbsp;")
            ->line('Before you can sign into your account. Please confirm your email address.')
            ->action('Confirm Account',
                url('/auth/register/confirm/' . $notifiable->confirmation_token));
        //->line("<strong>Account Holder Details</strong>")
        //->line("Fullname: {$notifiable->fullname}")
        //->line("Email: {$notifiable->email}")
        //->line("&nbsp;")

    }
580525
public function toMail($notifiable)
    {
        $url = route('auth.password.confirm', [$notifiable->getPasswordResetToken()->token]);

        return (new MailMessage)
            ->subject('Welcome to '. config('app.name') .'!')
            ->line('An account was created for you at '. config('app.name'))
            ->action('Set your password', $url)
            ->line('If you did not request an account, no further action is required.');
    }
1134840
protected function messageBuilder($notifiable, $notification, $message)
    {
        return function ($mailMessage) use ($notifiable, $notification, $message) {
            $this->buildMessage($mailMessage, $notifiable, $notification, $message);
        };
    }
354444
public function toMail($notifiable)
    {
        return (new MailMessage())
            ->line($this->getMessage($notifiable))
            ->from(
                config('health.notifications.from.address'),
                config('health.notifications.from.name')
            )
            ->action($this->getActionTitle(), $this->getActionLink());
    }
819813
public function toMail($notifiable)
    {
        $frontendReferer = parse_url(request()->headers->get('referer'));
        $frontendURL = $frontendReferer['scheme'] . '://' . $frontendReferer['host'];
        if ($frontendReferer['port']) {
            $frontendURL .= (':' . $frontendReferer['port']);
        }
        $frontendURL .= $frontendReferer['path'];
        $email = request()->get('email');
        $resetUrl = $frontendURL . '#/password/reset?email=' . $email . '&reset_token=' . $this->token;
        return (new MailMessage)
            ->line('You are receiving this email because we received a password reset request for your account.')
            ->action('Reset Password', $resetUrl)
            ->line('If you did not request a password reset, no further action is required.');
    }
451834
public function toMail($notifiable)
    {
        $password = $this->password;

        $message = new MailMessage();

        $message->viewData = [
            'email' => $email = $notifiable->getRecipientEmail(),
            'fullname' => $notifiable->getRecipientName(),
        ];

        $message->title(\trans('orchestra/foundation::email.register.title'))
                ->line(\trans('orchestra/foundation::email.register.message.intro'))
                ->line(\trans('orchestra/foundation::email.register.message.email', \compact('email')));

        if (! \is_null($this->password)) {
            $message->line(\trans('orchestra/foundation::email.register.message.password', \compact('password')));
        }

        return $message;
    }
460496
public function toSlack($notifiable)
    {
        $content = trans('notifications.schedule.new.slack.content', [
            'name' => $this->schedule->name,
            'date' => $this->schedule->scheduled_at_formatted,
        ]);

        return (new SlackMessage())
                    ->content(trans('notifications.schedule.new.slack.title'))
                    ->attachment(function ($attachment) use ($content) {
                        $attachment->title($content)
                                   ->timestamp($this->schedule->getWrappedObject()->scheduled_at)
                                   ->fields(array_filter([
                                        'ID'     => "#{$this->schedule->id}",
                                        'Status' => $this->schedule->human_status,
                                    ]))
                                   ->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
                    });
    }
637140
public function toNexmo($notifiable)
    {
        return (new NexmoMessage)->content(sprintf(
            '[%s] The "%s" queue on the "%s" connection has a wait time of %s seconds.',
            config('app.name'), $this->longWaitQueue, $this->longWaitConnection, $this->seconds
        ));
    }
1369768
protected function buildPayload($notifiable, Notification $notification)
    {
        return [
            'id' => $notification->id,
            'type' => get_class($notification),
            'data' => $this->getData($notifiable, $notification),
            'read_at' => null,
        ];
    }
200956
private function formatNotifiable($notifiable)
    {
        if ($notifiable instanceof Model) {
            return FormatModel::given($notifiable);
        } elseif ($notifiable instanceof AnonymousNotifiable) {
            return 'Anonymous:'.implode(',', $notifiable->routes);
        }

        return get_class($notifiable);
    }
387656
public function toMail($notifiable)
    {
        $url     = route('auth.invitation.activate', [$notifiable->getInvitationToken()->token]);
        $appName = config('app.name');

        return (new MailMessage)
            ->greeting('You have been invited to join ' . $appName . '!')
            ->line('Please click the button below to activate your account.')
            ->action('Verify your email', $url)
            ->line('We look forward to seeing you soon!');
    }
207907
public function toMail($notifiable)
    {
        return (new MailMessage)
            ->subject(config('coaster::site.name') . ': New Account Details')
            ->from(config('coaster::site.email'))
            ->line('You have been created a new account on '.url()->to('/').' please see details below:')
            ->line('Username: ' . $this->_user->email)
            ->line('Password: ' . $this->_password)
            ->action('Go to Login', url(route($this->_routeName)));
    }
1259206
public function toMail(User $notifiable)
    {
        $url = route('auth.password.confirm', [$notifiable->getPasswordResetToken()->token]);

        return (new MailMessage)
            ->line('You are receiving this email because we received a password reset request for your account.')
            ->action('Reset Password', $url)
            ->line('If you did not request a password reset, no further action is required.');
    }
800580
public function generateIdentifier(NotifiableInterface $notifiable)
    {
        $Notifiableidentifiers = $this->getNotifiableIdentifier($notifiable);
        $identifierValues = array();
        foreach ($Notifiableidentifiers as $identifier) {
            $method = sprintf('get%s', ucfirst($identifier));
            $identifierValues[] = $notifiable->$method();
        }

        return implode('-', $identifierValues);
    }
244345
protected function formatNotifiables($notifiables)
    {
        if ((! $notifiables instanceof Collection) && ! is_array($notifiables)) {
            $items = array($notifiables);

            if ($notifiables instanceof Model) {
                return new ModelCollection($items);
            }

            return $items;
        }

        return $notifiables;
    }
230969
public function pull($notifiable)
    {
        if ( ! is_array($notifiable)) {
            $notifiable = func_get_args();
        }

        $notifiable = $this->getUsersToPullFor($notifiable);

        $types = array_map(function ($notifiable) {
            return get_class($notifiable);
        }, $notifiable);

        $ids = array_map(function ($notifiable) {
            return $notifiable->getKey();
        }, $notifiable);

        return $this->store->getNotifications($types, $ids);
    }
60084
public function toSlack($notifiable)
    {
        return (new SlackMessage())
            ->error()
            ->from(
                config('health.notifications.from.name'),
                config('health.notifications.from.icon_emoji')
            )
            ->content($this->getMessage())
            ->attachment(function ($attachment) {
                $attachment
                    ->title($this->getActionTitle(), $this->getActionLink())
                    ->content($this->result->errorMessage);
            });
    }