Passed
Push — feature/permission-manager ( 41e93d )
by
unknown
09:00
created

PasswordResetByAdmin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toMail() 0 6 1
1
<?php
2
3
namespace A17\Twill\Notifications;
4
5
use Illuminate\Auth\Notifications\ResetPassword;
6
use Illuminate\Notifications\Messages\MailMessage;
7
8
class PasswordResetByAdmin extends ResetPassword
9
{
10
    public function toMail($notifiable)
11
    {
12
        return (new MailMessage)->markdown('twill::emails.html.email', [
13
            'url' => url(request()->getScheme() . '://' . config('twill.admin_app_url') . route('admin.login.form', null, false)),
14
            'actionText' => 'Login',
15
            'copy' => 'You are receiving this email because your password has been changed by Admin.',
16
        ]);
17
    }
18
}
19