PHP code example of codicastudio / verify-new-email
1. Go to this page and download the library: Download codicastudio/verify-new-email library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use ProtoneMedia\LaravelVerifyNewEmail\MustVerifyNewEmail;
class User extends Authenticatable implements MustVerifyEmail
{
use MustVerifyNewEmail, Notifiable;
public function sendEmailVerificationNotification()
{
$this->newEmail($this->getEmailForVerification());
}
}