afterCommit(); $this->education = $education; // } /** * Get the notification's delivery channels. * * @return array */ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->subject('[Eatvio] New Consultant request') ->line('User: ' . $notifiable->name . " send Consultant request") ->action('Notification Action', route('profile.show', $notifiable)) ->line('Thank you for using our application!'); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } public function withDelay(object $notifiable): array { return [ 'mail' => now()->addMinutes(5), 'sms' => now()->addMinutes(10), ]; } }