PasswordChange::toMail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 8
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter\Notifications;
4
5
use Illuminate\Notifications\Messages\MailMessage;
6
7
class PasswordChange extends UserNotification
8
{
9
    public function toMail($notifiable)
10
    {
11
        return (new MailMessage)
12
            ->subject(trans('sanctumauthstarter::notify.password.subject'))
13
            ->line(trans('sanctumauthstarter::notify.password.introduction'))
14
            ->line(trans('sanctumauthstarter::notify.password.message'))
15
            ->action(trans('sanctumauthstarter::notify.password.action'), route(config('sanctumauthstarter.notification_url.password.password_change')))
16
            ->line(trans('sanctumauthstarter::notify.password.complimentary_close'));
17
    }
18
}
19