File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -274,14 +274,14 @@ $magicLink = MagicLink::make(
274
274
275
275
#### Customize the notification class
276
276
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:
279
279
280
280
``` php
281
281
use Illuminate\Notifications\Messages\MailMessage;
282
- use Maize\MagicLogin\Notifications\MagicLinkNotification;
282
+ use Maize\MagicLogin\Notifications\MagicLinkNotification as BaseMagicLinkNotification ;
283
283
284
- class CustomMagicLinkNotification extends MagicLinkNotification
284
+ class MagicLinkNotification extends BaseMagicLinkNotification
285
285
{
286
286
public function toMail($notifiable): MailMessage
287
287
{
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class SendMagicLinkAction
10
10
{
11
11
public function __invoke (string $ uri , MagicLogin $ model ): void
12
12
{
13
- $ notification = Config::getNotification ();
13
+ $ notification = Config::getNotificationClass ();
14
14
15
15
Notification::send (
16
16
[$ model ->authenticatable ],
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public static function getSendNotificationAction(): SendMagicLinkAction
76
76
return app ($ notification );
77
77
}
78
78
79
- public static function getNotification (): string
79
+ public static function getNotificationClass (): string
80
80
{
81
81
return config ('magic-login.notification ' ) ?? MagicLinkNotification::class;
82
82
}
You can’t perform that action at this time.
0 commit comments