https://github.com/vibar/laravel-account
Laravel users activation.
https://github.com/vibar/laravel-account
accounts activation laravel users
Last synced: 5 months ago
JSON representation
Laravel users activation.
- Host: GitHub
- URL: https://github.com/vibar/laravel-account
- Owner: vibar
- License: mit
- Created: 2017-12-19T19:26:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-09T21:39:46.000Z (over 2 years ago)
- Last Synced: 2025-08-11T21:22:25.772Z (10 months ago)
- Topics: accounts, activation, laravel, users
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 32
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`
```
Vibar\Account\AccountServiceProvider::class
```
## Config
Add trait to `App\Http\Controllers\Auth\LoginController`
```
use Vibar\Account\Traits\ActiveLogin;
use AuthenticatesUsers, ActiveLogin {
ActiveLogin::authenticated insteadof AuthenticatesUsers;
}
```
Add trait to `App\Http\Controllers\Auth\RegisterController`
```
use Vibar\Account\Traits\ActiveRegister;
use RegistersUsers, ActiveRegister {
ActiveRegister::register insteadof RegistersUsers;
}
```
Add traits to `App\User`
```
use Illuminate\Notifications\Notifiable;
use Vibar\Account\Traits\Accountable;
class User extends Authenticatable
{
use Notifiable, Accountable;
}
```
Publish package files
```
php artisan vendor:publish --provider="Vibar\Account\AccountServiceProvider"
```
Publish Laravel auth views
```
php artisan make:auth
```
Run migrations
```
php artisan migrate
```
Include activation status template on `resources/views/auth/login.blade.php`
```
@include('vendor.account.activation._status')
```
## Update `.env`
Update `APP_URL`. This URL will be used for the activation link sent by email.
Use [Mailtrap](https://mailtrap.io/) to see the emails sent. Update `MAIL_USERNAME` and `MAIL_PASSWORD`
## Screenshots



