Skip to content

Commit ef583a0

Browse files
author
riccardodallavia
committed
wip
1 parent 90783e7 commit ef583a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,14 @@ $magicLink = MagicLink::make(
274274

275275
#### Customize the notification class
276276

277-
If needed, you can customize the email notification.
278-
All you have to do is creating your own notification and override the default `MagicLinkNotification` class:
277+
When needed, you can customize the email notification.
278+
All you have to do is create your own notification and override the default `MagicLinkNotification` class:
279279

280280
``` php
281281
use Illuminate\Notifications\Messages\MailMessage;
282-
use Maize\MagicLogin\Notifications\MagicLinkNotification;
282+
use Maize\MagicLogin\Notifications\MagicLinkNotification as BaseMagicLinkNotification;
283283

284-
class CustomMagicLinkNotification extends MagicLinkNotification
284+
class MagicLinkNotification extends BaseMagicLinkNotification
285285
{
286286
public function toMail($notifiable): MailMessage
287287
{

src/Actions/SendMagicLinkAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class SendMagicLinkAction
1010
{
1111
public function __invoke(string $uri, MagicLogin $model): void
1212
{
13-
$notification = Config::getNotification();
13+
$notification = Config::getNotificationClass();
1414

1515
Notification::send(
1616
[$model->authenticatable],

src/Support/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function getSendNotificationAction(): SendMagicLinkAction
7676
return app($notification);
7777
}
7878

79-
public static function getNotification(): string
79+
public static function getNotificationClass(): string
8080
{
8181
return config('magic-login.notification') ?? MagicLinkNotification::class;
8282
}

0 commit comments

Comments
 (0)