Email verification customisation.

After the email has been verified, I would like to create an account on Stripe. How do I customise email verification?.
No description
3 Replies
Jonay.Medina
Jonay.Medina9mo ago
Hi, did you find out how to solve it? I need to modify the password reset email, but I have not gotten information on how I could do it
Tony Piper
Tony Piper7mo ago
When the user verifies their email address, Filament dispatches Illuminate\Auth\Events\Verified event with the $user available as a property. You can create a listener (https://laravel.com/docs/11.x/events#defining-listeners) and do your Stripe API calls from there (ideally via a queue - see https://laravel.com/docs/11.x/events#queued-event-listeners). Does this help?
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Sourabh
SourabhOP7mo ago
I have overridden default reset password class and add my custom notification
<?php
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('app')
->login(Login::class)
->registration(Register::class)
->passwordReset(RequestPasswordReset::class, ResetPassword::class)
}
//RequestPassword class
class RequestPasswordReset extends BaseRequestPasswordResetPage
{
public function request(){
//some code
//my custom notification class
$notification = new ResetPasswordNotification($token);
}
}
?>
<?php
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('app')
->login(Login::class)
->registration(Register::class)
->passwordReset(RequestPasswordReset::class, ResetPassword::class)
}
//RequestPassword class
class RequestPasswordReset extends BaseRequestPasswordResetPage
{
public function request(){
//some code
//my custom notification class
$notification = new ResetPasswordNotification($token);
}
}
?>
Want results from more Discord servers?
Add your server