| 1 | <?php |
||
| 10 | class EmailVerification extends Notification |
||
| 11 | { |
||
| 12 | use Queueable; |
||
| 13 | |||
| 14 | protected $user; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new notification instance. |
||
| 18 | * |
||
| 19 | * @return void |
||
|
|
|||
| 20 | */ |
||
| 21 | public function __construct(User $user) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the notification's delivery channels. |
||
| 28 | * |
||
| 29 | * @param mixed $notifiable |
||
| 30 | * @return string[] |
||
| 31 | */ |
||
| 32 | public function via($notifiable) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the mail representation of the notification. |
||
| 39 | * |
||
| 40 | * @param mixed $notifiable |
||
| 41 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 42 | */ |
||
| 43 | public function toMail($notifiable) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the array representation of the notification. |
||
| 55 | * |
||
| 56 | * @param mixed $notifiable |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function toArray($notifiable) |
||
| 65 | } |
||
| 66 |
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.