changed logic in transporter bid
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Failing after 2m18s
Laravel Larastan / larastan (pull_request) Failing after 2m22s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Failing after 2m18s
Laravel Larastan / larastan (pull_request) Failing after 2m22s
This commit is contained in:
@@ -41,30 +41,28 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
|
|
||||||
// $user1 = Filament::auth()->user();
|
// $user1 = Filament::auth()->user();
|
||||||
|
|
||||||
$body = "$currentUser current rank is #{$rank}";
|
|
||||||
|
|
||||||
|
$body = "{$currentUser->name} current rank is #{$rank}";
|
||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Rank Updated')
|
->title('Rank Updated')
|
||||||
->body("{$currentUser->name} current rank is #{$rank}")
|
->body("{$currentUser->name} current rank is #{$rank}")
|
||||||
->success()
|
->success()
|
||||||
->sendToDatabase($recipients);
|
->sendToDatabase($recipients);
|
||||||
|
|
||||||
\Log::info('Notification sent', [
|
\Log::info('Notification sent', [
|
||||||
'rank' => $rank,
|
'rank' => $rank,
|
||||||
'recipients' => $recipients->pluck('id'),
|
'recipients' => $recipients->pluck('id'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
foreach ($recipients as $user) {
|
||||||
|
|
||||||
foreach ($recipients as $user) {
|
|
||||||
$user->notify(
|
$user->notify(
|
||||||
new PushAlertNotification(
|
new PushAlertNotification(
|
||||||
'Rank Updated',
|
'Rank Updated',
|
||||||
$body
|
$body
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user