familytree365 /
backend
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace App\Notifications; |
||||
| 4 | |||||
| 5 | use Illuminate\Notifications\Messages\MailMessage; |
||||
| 6 | use Illuminate\Notifications\Notification; |
||||
| 7 | |||||
| 8 | class ResetPassword extends Notification |
||||
| 9 | { |
||||
| 10 | public $token; |
||||
| 11 | |||||
| 12 | public function __construct($token) |
||||
| 13 | { |
||||
| 14 | $this->token = $token; |
||||
| 15 | } |
||||
| 16 | |||||
| 17 | public function via($notifiable) |
||||
|
0 ignored issues
–
show
|
|||||
| 18 | { |
||||
| 19 | return ['mail']; |
||||
| 20 | } |
||||
| 21 | |||||
| 22 | public function toMail($notifiable) |
||||
|
0 ignored issues
–
show
The parameter
$notifiable is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 23 | { |
||||
| 24 | return (new MailMessage) |
||||
| 25 | ->subject('Your Reset Password Subject Here') |
||||
| 26 | ->line('You are receiving this email because we received a password reset request for your account.') |
||||
| 27 | ->action('Reset Password', env('FRONTEND_URL', 'http://localhost:3000').'/password/reset/'.$this->token) |
||||
| 28 | ->line('If you did not request a password reset, no further action is required.'); |
||||
| 29 | } |
||||
| 30 | } |
||||
| 31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.