. */ namespace App\Mail; class NewPlaylist extends BaseNotification { /** * {@inheritdoc} */ public function build() { $creatorName = $this->initiatingUser->display_name; $playlistTitle = $this->activityRecord->resource->title; return $this->renderEmail( 'new-playlist', "{$creatorName} created a playlist, \"{$playlistTitle}\"!", [ 'creatorName' => $creatorName, 'playlistTitle' => $playlistTitle, ]); } }