All Projects → bestmomo → Laravel Email Confirmation

bestmomo / Laravel Email Confirmation

Add email confimation to Laravel project

Labels

Projects that are alternatives of or similar to Laravel Email Confirmation

Chip
A drop-in subscription billing UI for Laravel
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Flysystem Upyun
Laravel 又拍云文件存储,上传,删除。
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Yicms
基于laravel5.5 开发的Yicms系统的基础架构
Stars: ✭ 93 (-1.06%)
Mutual labels:  laravel
Laravel Ng Artisan Generators
Laravel artisan AngularJS generators
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Awesome Nova
🎉 A curated list of awesome things related to Laravel Nova
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Laravel Localize Middleware
Configurable localization middleware for your Laravel >=5.1 application
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Forsun Laravel
高性能的定时调度服务。
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Laravel Scavenger
The most integrated web scraper package for Laravel.
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Porter
A docker based multi-site setup for local PHP development. Inspired by Laravel Valet, Homestead and Vessel.
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Officelife
OfficeLife manages everything employees do in a company. From projects to holidays to 1 on 1s to ... 🚀
Stars: ✭ 90 (-4.26%)
Mutual labels:  laravel
Doesangue Core
Online platform that connects people interested in blood donation
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Depictr
A middleware for rendering static pages when crawled by search engines
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Dropzone Laravel Image Upload
Laravel 5.2 and Dropzone.js auto image uploads with removal links
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Laravel Plain Sqs
Custom SQS connector for Laravel (or Lumen) that supports third-party, plain JSON messages
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Laravel Backup
A easy-to-use backup manager for Laravel
Stars: ✭ 93 (-1.06%)
Mutual labels:  laravel
Alpaca Spa Laravel
Alpaca-Spa-Laravel 是用Alpaca-Spa + Laravel 前后端分离开发的一款后台管理系统的DEMO,当然你也可以用他来为前台编写http接口、websocket接口
Stars: ✭ 91 (-3.19%)
Mutual labels:  laravel
Img
🖼Image hosting powered by laravel
Stars: ✭ 92 (-2.13%)
Mutual labels:  laravel
Admin One Laravel Dashboard
Admin One — Free Laravel Dashboard (Bulma Buefy Vue.js SPA)
Stars: ✭ 94 (+0%)
Mutual labels:  laravel
Laravel Newsletter
Manage newsletters in Laravel
Stars: ✭ 1,318 (+1302.13%)
Mutual labels:  laravel
Laravel Bandwagon
Social proof package for Laravel
Stars: ✭ 93 (-1.06%)
Mutual labels:  laravel

Laravel Email Confirmation

This package is to add email confirmation to Laravel 5.4 or 5.5 project.

It should be used after php artisan make:auth command but can also be added to existing project.

There is a french presentation of this package.

Features

  • create a migration to add confirmation columns to users table
  • create routes for confirmation confirmation/resend confirmation/{id}/{token}
  • add an artisan command to override login and register views
  • send email notification with registration
  • add translations for notification (there are french, english, arabic, swedish and spanish translation ones)
  • block login for not confirmed user and launch an alert with resend link for notification
  • block auto login on password reset for not confirmed user

Installation

Add package to your composer.json file :

    composer require bestmomo/laravel-email-confirmation

For Laravel 5.4 add service provider to config/app.php (with Laravel 5.5 there is the package discovery):

    Bestmomo\LaravelEmailConfirmation\ServiceProvider::class,

From V1.1.5 you must publish the migration with:

    php artisan vendor:publish --provider="Bestmomo\LaravelEmailConfirmation\ServiceProvider" --tag="confirmation:migrations"

Run the published migration:

    php artisan migrate

Change trait reference in LoginController :

    use Bestmomo\LaravelEmailConfirmation\Traits\AuthenticatesUsers;

Change trait reference in RegisterController :

    use Bestmomo\LaravelEmailConfirmation\Traits\RegistersUsers;

Change trait reference in ResetPasswordController:

    use Bestmomo\LaravelEmailConfirmation\Traits\ResetsPasswords;

Publish

  • If you have used the php artisan make:auth command

Override login and register views to get confirmation alerts :

    php artisan confirmation:auth
  • If you have custom scaffold

You must add alerts in login and register views. Here are 2 examples with Bootstrap.

Login view :

@if (session('confirmation-success'))
    <div class="alert alert-success">
        {{ session('confirmation-success') }}
    </div>
@endif
@if (session('confirmation-danger'))
    <div class="alert alert-danger">
        {!! session('confirmation-danger') !!}
    </div>
@endif

Register view :

@if (session('confirmation-success'))
    <div class="alert alert-success">
        {{ session('confirmation-success') }}
    </div>
@endif

Optional Publish

If you want to do some changes or add a language you can publish translations :

    php artisan vendor:publish --tag=confirmation:translations

If you want to do some changes to confirmation notification you can make a copy in App :

    php artisan confirmation:notification
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].