@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace BeyondCode\EmailConfirmation\Traits; |
| 4 | 4 | |
| 5 | 5 | use BeyondCode\EmailConfirmation\Events\Confirmed; |
| 6 | -use Illuminate\Http\Request; |
|
| 7 | 6 | use Illuminate\Auth\Events\Registered; |
| 7 | +use Illuminate\Http\Request; |
|
| 8 | 8 | |
| 9 | 9 | trait RegistersUsers |
| 10 | 10 | { |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * Get the notification's delivery channels. |
| 18 | 18 | * |
| 19 | 19 | * @param mixed $notifiable |
| 20 | - * @return array |
|
| 20 | + * @return string[] |
|
| 21 | 21 | */ |
| 22 | 22 | public function via($notifiable) |
| 23 | 23 | { |
@@ -39,6 +39,9 @@ discard block |
||
| 39 | 39 | ->action(__('confirmation::confirmation.confirmation_button'), $this->confirmationUrl($notifiable)); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | + /** |
|
| 43 | + * @return string |
|
| 44 | + */ |
|
| 42 | 45 | protected function confirmationUrl($notifiable) |
| 43 | 46 | { |
| 44 | 47 | return URL::temporarySignedRoute( |
@@ -2,11 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace BeyondCode\EmailConfirmation\Notifications; |
| 4 | 4 | |
| 5 | -use Carbon\Carbon; |
|
| 6 | 5 | use Illuminate\Bus\Queueable; |
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 8 | +use Illuminate\Notifications\Notification; |
|
| 10 | 9 | use Illuminate\Support\Facades\URL; |
| 11 | 10 | |
| 12 | 11 | class ConfirmEmail extends Notification implements ShouldQueue |