PHP code example of mp3063 / mail-activation

1. Go to this page and download the library: Download mp3063/mail-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/ */

    

mp3063 / mail-activation example snippets


DB_HOST=localhost
DB_DATABASE=test_mail_activation
DB_USERNAME=root
DB_PASSWORD=
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=null

'from' => ['address' => '[email protected]', 'name' => 'Your Name'],

protected $fillable = [ 'name', 'email', 'password', 'code', 'active' ];

Auth::routes();


Route::get('/', function () {
    return view('welcome');
});

//Auth::routes();

Route::get('/home', 'HomeController@index');

mp3063\LaravelMailActivation\LaravelMailActivationServiceProvider::class,

[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}
bash
php artisan make:auth
bash
php artisan vendor:publish
bash
php artisan migrate