2017 © Pedro PelĂĄez
 

library laravel-account

Laravel account activation.

image

vibar/laravel-account

Laravel account activation.

  • Wednesday, January 17, 2018
  • by vitorbar
  • Repository
  • 2 Watchers
  • 31 Stars
  • 92 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

Laravel User Activation

  • Laravel 5.5 account verification (via e-mail confirmation) for new registers.
  • Messages are available in english and portuguese (BR). See resources/lang/vendor/account

Install

composer require vibar/laravel-account

Add service provider in config/app.php, (*1)

Vibar\Account\AccountServiceProvider::class

Config

Add trait to App\Http\Controllers\Auth\LoginController, (*2)

use Vibar\Account\Traits\ActiveLogin;

use AuthenticatesUsers, ActiveLogin {
    ActiveLogin::authenticated insteadof AuthenticatesUsers;
}

Add trait to App\Http\Controllers\Auth\RegisterController, (*3)

use Vibar\Account\Traits\ActiveRegister;

use RegistersUsers, ActiveRegister {
    ActiveRegister::register insteadof RegistersUsers;
}

Add traits to App\User, (*4)

use Illuminate\Notifications\Notifiable;
use Vibar\Account\Traits\Accountable;

class User extends Authenticatable
{
    use Notifiable, Accountable;
}

Publish package files, (*5)

php artisan vendor:publish --provider="Vibar\Account\AccountServiceProvider"

Publish Laravel auth views, (*6)

php artisan make:auth

Run migrations, (*7)

php artisan migrate

Include activation status template on resources/views/auth/login.blade.php, (*8)

@include('vendor.account.activation._status')

Update .env

Update APP_URL. This URL will be used for the activation link sent by email., (*9)

Use Mailtrap to see the emails sent. Update MAIL_USERNAME and MAIL_PASSWORD, (*10)

Screenshots

Sign up, (*11)

Login not available until activation, (*12)

Email with activation link, (*13)

Account activated, (*14)

The Versions

17/01 2018

dev-master

9999999-dev

Laravel account activation.

  Sources   Download

MIT

by VĂ­tor Barroso

17/01 2018

0.2

0.2.0.0

Laravel account activation.

  Sources   Download

MIT

by VĂ­tor Barroso

19/12 2017

0.1

0.1.0.0

Laravel account activation.

  Sources   Download

MIT

by VĂ­tor Barroso