Initial commit
This commit is contained in:
25
app/Notifications/VerifyEmail.php
Normal file
25
app/Notifications/VerifyEmail.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Auth\Notifications\VerifyEmail as Notification;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
|
||||
class VerifyEmail extends Notification
|
||||
{
|
||||
/**
|
||||
* Get the verification URL for the given notifiable.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return string
|
||||
*/
|
||||
protected function verificationUrl($notifiable)
|
||||
{
|
||||
$url = URL::temporarySignedRoute(
|
||||
'verification.verify', Carbon::now()->addMinutes(60), ['user' => $notifiable->id]
|
||||
);
|
||||
|
||||
return str_replace('/api', '', $url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user