PHP code example of samkitano / laravel-user-activation
1. Go to this page and download the library: Download samkitano/laravel-user-activation library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
samkitano / laravel-user-activation example snippets
namespace App\Http\Controllers\Auth;
use Kitano\UserActivation\Traits\ActivatesUsers;
//...
class AuthController extends Controller
{
/*
|--------------------------------------------------------------------------
| Registration & Login Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users, as well as the
| authentication of existing users. By default, this controller uses
| a simple trait to add these behaviors. Why don't you explore it?
|
*/
// Comment or replace this line:
// use AuthenticatesAndRegistersUsers, ThrottlesLogins, ActivatesUsers;
// with:
use ThrottlesLogins, ActivatesUsers;
// ...
bash
php artisan vendor:publish --force
bash
php artisan migrate
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.