%PDF- %PDF-
Direktori : /var/www/html/geotechnics/api/app/Notifications/ |
Current File : /var/www/html/geotechnics/api/app/Notifications/NotifyAdminForProfileCompletion.php |
<?php namespace App\Notifications; use App\Models\CompanyProfile; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class NotifyAdminForProfileCompletion extends Notification implements ShouldQueue { use Queueable; /** * @var CompanyProfile */ private $profile; /** * Create a new notification instance. * * @param CompanyProfile $profile */ public function __construct(CompanyProfile $profile) { $this->profile = $profile; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { return (new MailMessage)->from(env('MAIL_USERNAME', 'greengeotechnics2019@gmail.com'), 'Green Geotechnics') ->subject('New profile completion') ->greeting(' ') ->line("{$this->profile->user->getFullName()} has completed his profile details.") ->salutation(' '); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [// ]; } }