Notifications
Redot Core ships the email that delivers a passwordless login link and one-time code to a user during magic-link authentication. It is sent for you by the magic-link auth flow — you only need to touch it when you want to customize the email.
How it's used
When a user requests a magic link, the auth flow generates a login token and emails it. The message contains a Login Now button (the link) and a 6-character one-time code the user can type instead. Both expire after the configured window. You don't dispatch this notification yourself; the auth flow does. See Authentication.
Customizing the email
For wording, colors, or translations, edit the relevant translation strings and the published mail notification templates — the email text passes through __(), so it is fully translatable.
To replace the email entirely (different layout, extra channels, branding), pass your own notification class to the panel's magic-link feature:
use App\Notifications\CustomMagicLink;
use Redot\Auth\Features\MagicLink;
MagicLink::make()->notification(CustomMagicLink::class)Your class receives the same three arguments as the default: the login token, the ready-to-use sign-in URL, and the number of minutes the link stays valid.
Options
expiresInon the magic-link feature, falling back toauth.magic_link.expire— minutes until the link expires (default15). Controls both the token's lifetime and the "expires in :minutes minutes" line.app.name— interpolated into the subject line.
Related
- Authentication — the magic-link flow that sends it.
- Dashboard Notifications — in-app notifications shown in the dashboard bell and notifications page.
- Models — the login token the email carries.