2020-03-11 10:40:10 +11:00
|
|
|
<?php
|
2020-09-21 20:54:58 +10:00
|
|
|
/**
|
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
|
*
|
2023-01-29 09:21:40 +11:00
|
|
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
2020-09-21 20:54:58 +10:00
|
|
|
*
|
2021-06-16 16:58:16 +10:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2020-09-21 20:54:58 +10:00
|
|
|
*/
|
2020-03-11 10:40:10 +11:00
|
|
|
|
|
|
|
|
namespace App\Notifications\Ninja;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
|
use Illuminate\Notifications\Notification;
|
2020-09-06 19:38:10 +10:00
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
2020-03-11 10:40:10 +11:00
|
|
|
|
2021-02-15 11:49:34 +11:00
|
|
|
//@deprecated
|
2022-06-21 09:57:17 +00:00
|
|
|
class VerifyUser extends Notification
|
2020-03-11 10:40:10 +11:00
|
|
|
{
|
2022-06-21 09:57:17 +00:00
|
|
|
// use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
2020-03-11 10:40:10 +11:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new notification instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected $user;
|
|
|
|
|
|
2020-09-27 19:22:34 +10:00
|
|
|
private $company;
|
|
|
|
|
|
|
|
|
|
public function __construct($user, $company)
|
2020-03-11 10:40:10 +11:00
|
|
|
{
|
|
|
|
|
$this->user = $user;
|
2020-09-27 19:22:34 +10:00
|
|
|
$this->company = $company;
|
2020-03-11 10:40:10 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the notification's delivery channels.
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $notifiable
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function via($notifiable)
|
|
|
|
|
{
|
2021-02-15 07:55:09 +11:00
|
|
|
return [''];
|
2020-03-11 10:40:10 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the mail representation of the notification.
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $notifiable
|
2020-10-28 21:10:49 +11:00
|
|
|
* @return MailMessage
|
2020-03-11 10:40:10 +11:00
|
|
|
*/
|
|
|
|
|
public function toMail($notifiable)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the array representation of the notification.
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $notifiable
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function toArray($notifiable)
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
//
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function toSlack($notifiable)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|