0

I implemented the email verification that Laravel offers out of the box but currently have an issue when one click on the verification link sent on email. It brings the error: Data Missing

This error is throw by Carbon at the point when the column email_verified_at is being updated, and this was only on the SQLSRV implementation. I switched to a test MySQL database and this worked, although I need it to work with SQLSRV. I have not checked to see if any other database implementation encounters this problem.

JBakasa
  • 1
  • 1
  • Please show your code of the implementation you got so far. – Namoshek Mar 21 '19 at 05:28
  • @Namoshek I did not alter the laravel out of the box code. – JBakasa Mar 25 '19 at 16:05
  • Okay, then please share the migration for your `users` table. – Namoshek Mar 25 '19 at 16:12
  • @Namoshek here is my users migration file Schema::create('users', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('username'); $table->string('person_id'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->rememberToken(); $table->timestamps(); }); – JBakasa Apr 04 '19 at 07:12

1 Answers1

0

Add it into app\Http\Controller\Auth\VerificationController.php

protected function getDateFormat()
{
    return 'Y-m-d H:i:s';
}