Skip to content

Commit

Permalink
fixed #598
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 6, 2018
1 parent e8fccd5 commit 99c735d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Notifications/Auth/Reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function toMail($notifiable)

return (new MailMessage)
->line(trans('auth.notification.message_1'))
->action(trans('auth.notification.button'), url('auth/reset', $this->token, true))
->action(trans('auth.notification.button'), url('auth/reset', $this->token))
->line(trans('auth.notification.message_2'));
}
}
2 changes: 1 addition & 1 deletion app/Notifications/Common/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function toMail($notifiable)
{
$message = (new MailMessage)
->line(trans('items.notification.message.out_of_stock', ['name' => $this->item->name]))
->action(trans('items.notification.button'), url('items/items', $this->item->id, true));
->action(trans('items.notification.button'), url('items/items', $this->item->id));

// Override per company as Laravel doesn't read config
$message->from(config('mail.from.address'), config('mail.from.name'));
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/Common/ItemReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function toMail($notifiable)
{
$message = (new MailMessage)
->line(trans('items.notification.message.reminder', ['name' => $this->item->name, 'quantity' => $this->item->quantity]))
->action(trans('items.notification.button'), url('items/items', $this->item->id, true));
->action(trans('items.notification.button'), url('items/items', $this->item->id));

// Override per company as Laravel doesn't read config
$message->from(config('mail.from.address'), config('mail.from.name'));
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/Customer/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function toMail($notifiable)
]);
}

$message->action(trans('customers.notification.button'), url('incomes/invoices', $this->invoice->id, true));
$message->action(trans('customers.notification.button'), url('incomes/invoices', $this->invoice->id));

return $message;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/Expense/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function toMail($notifiable)
{
$message = (new MailMessage)
->line('You are receiving this email because you have an upcoming ' . money($this->bill->amount, $this->bill->currency_code, true) . ' bill to ' . $this->bill->vendor_name . ' vendor.')
->action('Add Payment', url('expenses/bills', $this->bill->id, true));
->action('Add Payment', url('expenses/bills', $this->bill->id));

// Override per company as Laravel doesn't read config
$message->from(config('mail.from.address'), config('mail.from.name'));
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/Income/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function toMail($notifiable)
}

if ($this->invoice->customer->user) {
$message->action(trans('invoices.notification.button'), url('customers/invoices', $this->invoice->id, true));
$message->action(trans('invoices.notification.button'), url('customers/invoices', $this->invoice->id));
}

return $message;
Expand Down

0 comments on commit 99c735d

Please sign in to comment.