close #2431 Fixed: Notification generate signed url broken (#2za2u9y , #2za30n8)
This commit is contained in:
parent
7359e246c3
commit
d1f987c720
@ -58,6 +58,15 @@ abstract class Notification extends BaseNotification implements ShouldQueue
|
|||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialise the array representation of the notification.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function initArrayMessage(): void
|
||||||
|
{
|
||||||
|
app('url')->defaults(['company_id' => company_id()]);
|
||||||
|
}
|
||||||
|
|
||||||
public function getSubject(): string
|
public function getSubject(): string
|
||||||
{
|
{
|
||||||
return !empty($this->custom_mail['subject'])
|
return !empty($this->custom_mail['subject'])
|
||||||
|
@ -74,6 +74,8 @@ class Transaction extends Notification
|
|||||||
*/
|
*/
|
||||||
public function toArray($notifiable): array
|
public function toArray($notifiable): array
|
||||||
{
|
{
|
||||||
|
$this->initArrayMessage();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'template_alias' => $this->template->alias,
|
'template_alias' => $this->template->alias,
|
||||||
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
||||||
|
@ -82,6 +82,8 @@ class PaymentReceived extends Notification
|
|||||||
*/
|
*/
|
||||||
public function toArray($notifiable): array
|
public function toArray($notifiable): array
|
||||||
{
|
{
|
||||||
|
$this->initArrayMessage();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'template_alias' => $this->template->alias,
|
'template_alias' => $this->template->alias,
|
||||||
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
||||||
|
@ -54,6 +54,8 @@ class Bill extends Notification
|
|||||||
*/
|
*/
|
||||||
public function toArray($notifiable): array
|
public function toArray($notifiable): array
|
||||||
{
|
{
|
||||||
|
$this->initArrayMessage();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'template_alias' => $this->template->alias,
|
'template_alias' => $this->template->alias,
|
||||||
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
||||||
|
@ -77,6 +77,8 @@ class Payment extends Notification
|
|||||||
*/
|
*/
|
||||||
public function toArray($notifiable)
|
public function toArray($notifiable)
|
||||||
{
|
{
|
||||||
|
$this->initArrayMessage();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'template_alias' => $this->template->alias,
|
'template_alias' => $this->template->alias,
|
||||||
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
||||||
|
@ -78,6 +78,8 @@ class Invoice extends Notification
|
|||||||
*/
|
*/
|
||||||
public function toArray($notifiable): array
|
public function toArray($notifiable): array
|
||||||
{
|
{
|
||||||
|
$this->initArrayMessage();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'template_alias' => $this->template->alias,
|
'template_alias' => $this->template->alias,
|
||||||
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
'title' => trans('notifications.menu.' . $this->template->alias . '.title'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user