Merge branch 'akaunting:master' into master

This commit is contained in:
Burak Civan 2022-06-17 10:37:30 +03:00 committed by GitHub
commit c75f3bce8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ class ShowInNotifications
foreach ($updates as $key => $update) {
$prefix = ($key == 'core') ? 'core' : 'module';
$name = ($prefix == 'core') ? 'Akaunting' : module($key)->getName();
$new = new DatabaseNotification();
$new->id = $key;
@ -39,8 +40,8 @@ class ShowInNotifications
$new->notifiable_type = "users";
$new->notifiable_id = user()->id;
$new->data = [
'title' => $key . ' (v' . $update . ')',
'description' => '<a href="' . route('updates.index') . '">' . trans('install.update.' . $prefix) . '</a>',
'title' => $name . ' (v' . $update . ')',
'description' => '<a href="' . route('updates.index') . '">' . trans('install.update.' . $prefix, ['module' => $name]) . '</a>',
];
$new->created_at = \Carbon\Carbon::now();