Pony.fm/app/Mail/NewTrack.php

26 lines
550 B
PHP
Raw Normal View History

<?php
namespace Poniverse\Ponyfm\Mail;
class NewTrack extends BaseNotification
{
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$artistName = $this->initiatingUser->display_name;
$trackTitle = $this->activityRecord->resource->title;
return $this->renderEmail(
'new-track',
"{$artistName} published \"{$trackTitle}\"",
[
'artist' => $artistName,
'trackTitle' => $trackTitle,
]);
}
}