- 基础环境:Docker 部署配置,源码挂载实时同步 - 修复:super_admin 权限补全、登录重定向循环 - 开发:店铺营销账户账单 - 抖音账户(15字段汇总账单) - 开发:店铺营销账户账单 - 淘系支付宝账户(8字段流水账单) - 开发:店铺营销账户账单 - 拼多多账户(7字段流水账单) - 业务页面导航集成:config/business_navigation.php + Business\Pages 控制器 - 各平台独立表结构和视图,互不影响
54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Notifications\Auth;
|
|
|
|
use App\Models\Auth\UserInvitation;
|
|
use Illuminate\Notifications\Notification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class Invitation extends Notification
|
|
{
|
|
/**
|
|
* The password reset token.
|
|
*
|
|
* @var UserInvitation
|
|
*/
|
|
public $invitation;
|
|
|
|
/**
|
|
* Create a notification instance.
|
|
*
|
|
* @param UserInvitation $invitation
|
|
*/
|
|
public function __construct($invitation)
|
|
{
|
|
$this->invitation = $invitation;
|
|
}
|
|
|
|
/**
|
|
* Get the notification's channels.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return array|string
|
|
*/
|
|
public function via($notifiable)
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
/**
|
|
* Build the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable): MailMessage
|
|
{
|
|
return (new MailMessage)
|
|
->from(config('mail.from.address'), config('mail.from.name'))
|
|
->line(trans('auth.invitation.message_1'))
|
|
->action(trans('auth.invitation.button'), route('register', $this->invitation->token))
|
|
->line(trans('auth.invitation.message_2'));
|
|
}
|
|
}
|