Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Notifications;
use Illuminate\Auth\Notifications\VerifyEmail;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Str;
class VerifyProfileEmail extends VerifyEmail
{
/**
* Get the name of the queue the notification should be sent on.
*
* @return string
*/
public function viaQueue()
{
return 'high';
}
protected function verificationUrl($notifiable)
{
$baseName = class_basename($notifiable); // e.g. "Organization"
$type = Str::lower($baseName);
// Use $notifiable->id for an organization, bank, admin ID
return URL::temporarySignedRoute(
'verification.verify',
Carbon::now()->addMinutes(60),
[
'type' => $type,
'id' => $notifiable->id,
'hash' => sha1($notifiable->getEmailForVerification()),
]
);
}
}