PHP code example of voerro / laravel-email-verification
1. Go to this page and download the library: Download voerro/laravel-email-verification 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/ */
voerro / laravel-email-verification example snippets
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Voerro\Laravel\EmailVerification\Traits\EmailVerifiable;
class User extends Authenticatable
{
use Notifiable, EmailVerifiable;
...
}
...
/**
* The user has been registered.
*
* @param \Illuminate\Http\Request $request
* @param mixed $user
* @return mixed
*/
protected function registered($request, $user)
{
return EmailVerification::registered($user);
}
...