for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Rinvex Fort Package.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Rinvex Fort Package
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
namespace Rinvex\Fort\Notifications;
use Illuminate\Notifications\Notification;
use NotificationChannels\Authy\AuthyChannel;
use NotificationChannels\Authy\AuthyMessage;
class PhoneVerificationNotification extends Notification
{
/**
* The notification method (sms/call).
* @var string
public $method;
* Determine whether to force the notification over cellphone network.
* @var bool
public $force;
* Create a notification instance.
* @param string $method
* @param bool $force
public function __construct($method = 'sms', $force = false)
$this->method = $method;
$this->force = $force;
}
* Get the notification's channels.
* @param mixed $notifiable
* @return array|string
public function via($notifiable)
$notifiable
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return [AuthyChannel::class];
* Build the mail representation of the notification.
* @return \NotificationChannels\Authy\AuthyMessage
public function toAuthy()
$message = AuthyMessage::create()->method($this->method);
if ($this->force) {
$message->force();
return $message;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.