Download the PHP package aliabdulaziz/laravel-email-verification without Composer
On this page you can find all versions of the php package aliabdulaziz/laravel-email-verification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aliabdulaziz/laravel-email-verification
More information about aliabdulaziz/laravel-email-verification
Files in aliabdulaziz/laravel-email-verification
Package laravel-email-verification
Short Description This Laravel package provides a simple solution for email verification.
License MIT
Informations about the package laravel-email-verification
laravel-email-verification
This Laravel package provides a simple solution for email verification.
Requirements
- Laravel 5.3+
Screenshots
Installation
It is recommended to install this package in a fresh installation of Laravel.
Laravel's built-in Auth System
This package is integrated with Laravel's built-in Auth System, so you must first run this command if you have not run it yet:
Now go to your (env) file and make sure that you have selected your database.
Install the package using composer
Now install the package using composer by running the following command:
Add the service provider (for Laravel < 5.5)
Go to: (Your Laravel App) --> config --> app.php
and add the following line under 'Package Service Providers' comment:
Publish the config file
Run the following command to publish the package config file:
The config file is named (laravelemailverification.php) and will be located in the 'config' folder.
Migrate
Run the artisan migrate command to create the users table:
this command will also migrate the package migration file by which the email_verification field is added to the users table.
Config Mail Driver
go to your (env) file and make sure that you have configured your mail driver.
Middleware
Go to: (Your Laravel App) --> app --> Http --> Kernal.php
and add the following middleware to the $routeMiddleware array:
Now you can use this middleware on the routes that you want to prevent from being accessed by the users who did not verify their emails.
Example
Customization
To customize the package default views publish them to your views folder by running the following command:
Now make whatever customization you want on the published views.