| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php namespace JobApis\JobsToMail\Notifications; |
||
| 47 | 1 | public function toMail($notifiable) |
|
| 48 | { |
||
| 49 | 1 | $url = config('app.url').'auth/confirm/'.$this->token; |
|
| 50 | 1 | $message = new MailMessage; |
|
| 51 | 1 | $message->viewData['user_id'] = $notifiable->id; |
|
| 52 | return $message |
||
| 53 | 1 | ->subject('Confirm your email address to start receiving jobs') |
|
| 54 | 1 | ->greeting('Thank you for joining '.config('app.name')) |
|
| 55 | 1 | ->line('In order to start sending you jobs we need you to confirm your email address.') |
|
| 56 | 1 | ->action('Confirm Email', $url) |
|
| 57 | 1 | ->line('Once confirmed, you will start receiving emails within 24 hours.'); |
|
| 58 | } |
||
| 59 | } |
||
| 60 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.