devmi/laraconfirm

Laravel package for signup confirmation
17 5
Install
composer require devmi/laraconfirm
Latest Version:1.0.0
PHP:>=5.5.0
License:MIT
Last Updated:Mar 26, 2018
Links: GitHub  ·  Packagist
Maintainer: MiloudiMohamed

Easy Email Confirmation for Your Laravel App

This composer package offers an easy way to add confirmation email step for your Laravel applications.

Installation

Begin by pulling in the package through Composer.

composer require devmi/laraconfirm

Next, if using Laravel 5, include the service provider within your config/app.php file. (ignore this step if you using Laravel >= 5.5)

'providers' => [
    Devmi\Laraconfirm\LaraconfirmServiceProvider::class,
];

run your migration

php artisan migrate

Then, replace those 3 traits and don't forget to import them under Devmi\Laraconfirm\Traits\LaraconfirmLoginTrait

in App\Http\Controllers\Auth\LoginController;

use AuthenticatesUsers;
// By
use LaraconfirmLoginTrait;

in App\Http\Controllers\Auth\RegisterController;

use RegistersUsers;
// By
use LaraconfirmRegisterTrait;

in App\Http\Controllers\Auth\ResetPasswordController;

use ResetsPasswords;
// By
use LaraconfirmResetsPasswordsTrait;

Finally, to get a nice feedback message add this code to you login page

// resources\views\auth\login.blade.php

@if (session('laraconfirmAlert'))
  <div class="alert alert-info">
    {!! session('laraconfirmAlert') !!}
  </div>
@endif
// above the login form or anywhere you want
// the form is here below
...

That's it! You'll now be able to confirm your member email before they login.

Related Packages

milenmk/laravel-email-change-confirmation

A Laravel package for secure email change confirmation with support for both tra...

32 2
tyondo/laravel-notifications

User notifications via email for Laravel 5.3 and 5.4.

50 0
rlacerda83/service-email

Microservice for sending e-mail

5 76
themonkeys/error-emailer

Emails you whenever an error occurs on your server

17,073 49
pavankumar/qrcoder

This is a Laravel 5 package for generating QR codes.

77 5