for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
use Closure;
interface EmailVerificationBrokerContract
{
/**
* Constant representing a successfully sent verification email.
*
* @var string
*/
const LINK_SENT = 'messages.verification.email.link_sent';
* Constant representing a successfully verified email.
const EMAIL_VERIFIED = 'messages.verification.email.verified';
* Constant representing an invalid user.
const INVALID_USER = 'messages.verification.email.invalid_user';
* Constant representing an invalid token.
const INVALID_TOKEN = 'messages.verification.email.invalid_token';
* Constant representing an expired token.
const EXPIRED_TOKEN = 'messages.verification.email.expired_token';
* Send a user email verification.
* @param array $credentials
* @return string
public function sendVerificationLink(array $credentials): string;
* Verify given account.
* @param \Closure|null $callback
$callback
Closure
* @return mixed
public function verify(array $credentials, Closure $callback);
}