This commit is contained in:
Peter Papp
2021-04-07 07:48:07 +02:00
parent 87b3625b27
commit 30ae2c0a54
13 changed files with 163 additions and 114 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ class InvoiceAdminResource extends JsonResource
'id' => $user->id,
'type' => 'user',
'attributes' => [
'name' => $user->name,
'avatar' => $user->avatar,
'name' => $user->settings->name,
'avatar' => $user->settings->avatar,
]
]
]
+4 -4
View File
@@ -19,11 +19,11 @@ class LanguageResource extends JsonResource
'id' => $this->id,
'type' => 'languages',
'attributes' => [
'name' => $this->name,
'locale' => $this->locale,
'name' => $this->name,
'locale' => $this->locale,
'translations' => map_language_translations($this->languageTranslations),
'updated_at' => $this->updated_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'created_at' => $this->created_at,
]
],
];
+6 -6
View File
@@ -26,7 +26,7 @@ class SharedSendViaEmail extends Notification
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
@@ -37,23 +37,23 @@ class SharedSendViaEmail extends Notification
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage)
->subject(__t('shared_link_email_subject', ['user' => $this->user->name]))
->subject(__t('shared_link_email_subject', ['user' => $this->user->settings->name]))
->greeting(__t('shared_link_email_greeting'))
->line(__t('shared_link_email_user', ['user' => $this->user->name, 'email' => $this->user->email]))
->action(__t('shared_link_email_link'), url('/shared', ['token' => $this->token]))
->line(__t('shared_link_email_user', ['user' => $this->user->settings->name, 'email' => $this->user->email]))
->action(__t('shared_link_email_link'), url('/share', ['token' => $this->token]))
->salutation(__t('shared_link_email_salutation', ['app_name' => get_setting('app_title') ?? 'VueFileManager']));
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)