php-tenant/Notifications/WelcomeNotification.php
Snider d0ad2737cb refactor: rename namespace from Core\Mod\Tenant to Core\Tenant
Simplifies the namespace hierarchy by removing the intermediate Mod
segment. Updates all 118 files including models, services, controllers,
middleware, tests, and composer.json autoload configuration.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 16:30:46 +00:00

57 lines
1.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
namespace Core\Tenant\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class WelcomeNotification extends Notification implements ShouldQueue
{
use Queueable;
/**
* Get the notification's delivery channels.
*
* @return array<int, string>
*/
public function via(object $notifiable): array
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*/
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->subject('Welcome to Host UK')
->greeting('Hello '.($notifiable->name ?: 'there').',')
->line('Thanks for creating your Host UK account. You\'re all set to start building your online presence.')
->line('Here\'s what you can do next:')
->line('• **BioHost** Create a bio page with 60+ content blocks')
->line('• **SocialHost** Schedule posts across 20+ social platforms')
->line('• **AnalyticsHost** Track your website visitors with privacy-first analytics')
->line('• **TrustHost** Add social proof widgets to your site')
->line('• **NotifyHost** Send browser push notifications')
->action('Go to Dashboard', route('hub.dashboard'))
->line('If you have any questions, just reply to this email.')
->salutation('Cheers, the Host UK team');
}
/**
* Get the array representation of the notification.
*
* @return array<string, mixed>
*/
public function toArray(object $notifiable): array
{
return [
'type' => 'welcome',
];
}
}