PHP code example of aliabdulaziz / laravel-email-verification
1. Go to this page and download the library: Download aliabdulaziz/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/ */
aliabdulaziz / laravel-email-verification example snippets
Aliabdulaziz\LaravelExtendedUser\LaravelEmailVerificationServiceProvider::class
'verifyEmail' => \Aliabdulaziz\LaravelEmailVerification\Middleware\VerifyEmail::class,
Route::middleware(['web', 'auth', 'verifyEmail'])->group(function () {
// Only users with verified emails can access this route
Route::get('verified-email', function () {
echo "Your email is verified!";
});
});
shell
php artisan make:auth
shell
php artisan vendor:publish --provider="Aliabdulaziz\LaravelEmailVerification\LaravelEmailVerificationServiceProvider" --tag=config
shell
php artisan migrate
shell
php artisan vendor:publish --provider="Aliabdulaziz\LaravelEmailVerification\LaravelEmailVerificationServiceProvider" --tag=views