mailer('cp_'.MailPurpose::SYSTEM); } public function envelope(): Envelope { return $this->mailboxEnvelope( MailPurpose::SYSTEM, __('devices.mail_subject'), ); } public function content(): Content { return new Content(view: 'mail.new-device', with: [ 'name' => $this->name, 'device' => $this->device, // Operators and customers land in different places, and sending // somebody to the other product's settings page is sending them // somewhere they cannot sign in (R21). 'sessionsUrl' => $this->guard === 'operator' ? route('admin.settings') : route('settings'), ]); } }