. */ namespace App\Mail; class ContentFavourited extends BaseNotification { /** * {@inheritdoc} */ public function build() { $creatorName = $this->initiatingUser->display_name; return $this->renderEmail( 'content-favourited', $this->activityRecord->text, [ 'creatorName' => $creatorName, 'creatorBio' => $this->initiatingUser->bio, 'creatorUrl' => $this->initiatingUser->url, 'resourceType' => $this->activityRecord->getResourceTypeString(), 'resourceTitle' => $this->activityRecord->resource->title, ]); } }