for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Canvas\Notifications;
use Canvas\Contracts\Notifications\NotificationInterfase;
use Baka\Mail\Message;
use Canvas\Models\EmailTemplates;
use Phalcon\Di;
use Canvas\Models\Users;
use Canvas\Template;
class Signup extends Notification implements NotificationInterfase
{
//protected $useQueue = true;
/**
* Notification msg.
*
* @return string
*/
public function message(): string
return Template::generate('signup', $this->entity->toArray());
}
* Email body.
* @return Message|null
public function toMail(): ?Message
$app = Di::getDefault()->getApp();
return $this->mail->to($this->entity->getEmail())
->subject('Welcome to ' . $app->name)
->content($this->message());