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 provides activation & resend activation account.
composer require rorikurniadi/laravel-activator
'providers' => [
#...
Rorikurn\Activator\ActivatorServiceProvider::class
],
'aliases' => [
#...
'Activator' => 'Rorikurn\Activator\Facades\Activator'
]
php artisan migrate --path="vendor/rorikurniadi/laravel-activator/database/migrations"
php artisan vendor:publish --force
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.