| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 1 | public function toMail($notifiable) |
|
| 44 | { |
||
| 45 | 1 | $appName = (app()->environment() == 'local' ? getenv('APP_NAME') : config('app.name')); |
|
| 46 | 1 | $subject = trans('mail.activation_account') . " " . $appName; |
|
| 47 | |||
| 48 | 1 | return (new MailMessage) |
|
| 49 | 1 | ->subject($subject) |
|
| 50 | 1 | ->greeting(trans('mail.dear_kenshi')) |
|
| 51 | 1 | ->line(trans('mail.user_invited_you', [ |
|
| 52 | 1 | 'user' => $this->user->name, |
|
| 53 | 1 | 'appName' => $appName])) |
|
| 54 | 1 | ->line(trans('mail.please_click_link_to_confirm_account')) |
|
| 55 | 1 | ->action(trans('mail.activate_account'), url("/register/confirm/{$this->user->token}")) |
|
| 56 | 1 | ->line(trans('mail.tx_for_signup')); |
|
| 57 | } |
||
| 72 |