Download the PHP package edvinaskrucas/laravel-user-email-verification without Composer
On this page you can find all versions of the php package edvinaskrucas/laravel-user-email-verification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edvinaskrucas/laravel-user-email-verification
More information about edvinaskrucas/laravel-user-email-verification
Files in edvinaskrucas/laravel-user-email-verification
Package laravel-user-email-verification
Short Description Laravel Package for easier user email verification.
License MIT
Informations about the package laravel-user-email-verification
User email verification for Laravel 5
Installation
Require this package in your composer.json by typing in your console:
Registering to use it with laravel
Add following lines to
ServiceProvider array
Publishing config file
If you want to edit default config file, just publish it to your app folder.
php artisan vendor:publish --provider="Krucas\LaravelUserEmailVerification\UserEmailVerificationServiceProvider" --tag="config"
Publishing translations
In order to customise translations you need to publish it.
php artisan vendor:publish --provider="Krucas\LaravelUserEmailVerification\UserEmailVerificationServiceProvider" --tag="translations"
Publishing views
Package comes with default views, if you want to edit them, just publish it.
php artisan vendor:publish --provider="Krucas\LaravelUserEmailVerification\UserEmailVerificationServiceProvider" --tag="views"
Usage
Configuration
Package comes with several configuration options.
Setting | Description |
---|---|
Default broker driver. | |
MUST or MUST NOT user validate his account before login. | |
Config of all repositories which can be used. | |
Config of all brokers which can be used. |
Install default controller, routes and migrations
Command above will add default to which will provide default verification behaviour.
Also routes will be modified, it will add default routes for verification controller.
Migrations will add extra columns to table to identify if user is verified or not, also token table will be added to store verification tokens.
After running command you have to install new migrations, this can be done with this command:
After all these steps you need to adjust default auth controller provided by Laravel, these adjustments will enable authentication controller to send verification email and will not allow non-verified users to login.
Clear expired tokens
Package comes with useful command to clear expired tokens, just replace with your broker name.
More info can be found here: http://www.krucas.com/2016/04/user-email-verification-for-laravel-5/
All versions of laravel-user-email-verification with dependencies
illuminate/support Version ^5.2
illuminate/console Version ^5.2
illuminate/database Version ^5.2
illuminate/filesystem Version ^5.2
illuminate/http Version ^5.2
illuminate/mail Version ^5.2