rorikurniadi / laravel-activator by rorikurniadi

Laravel activator provides activation & resend activation account
13
1
2
Package Data
Maintainer Username: rorikurniadi
Maintainer Contact: rori.kurniadi@yahoo.com (Rori Kurniadi)
Package Create Date: 2016-10-08
Package Last Update: 2016-11-20
Language: PHP
License: MIT
Last Refreshed: 2024-12-17 03:03:14
Package Statistics
Total Downloads: 13
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

laravel-activator

Laravel activator provides activation & resend activation account.

Installation

composer require rorikurniadi/laravel-activator

Setup

Register in config/app.php

    'providers' => [
        #...
        Rorikurn\Activator\ActivatorServiceProvider::class
    ],

    'aliases' => [
        #...
        'Activator' => 'Rorikurn\Activator\Facades\Activator'
    ]

Migration

php artisan migrate --path="vendor/rorikurniadi/laravel-activator/database/migrations"

Publish Views & Config File

php artisan vendor:publish --force

Usage

Integrate with your Registration Process

    # app/Http/Controllers/Auth/RegisterController

    protected function create(array $data)
    {
        // Create User
        $user = User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => bcrypt($data['password']),
        ]);

        return Activator::activate($user);
    }

This is beta version.