Make optional application-related registration parameters optional

This commit is contained in:
Miguel Nogueira 2020-04-29 22:18:34 +01:00
parent 11e8062500
commit 58b6f3292e
3 changed files with 4 additions and 3 deletions

View File

@ -68,6 +68,7 @@ class RegisterController extends Controller
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
'originalIP' => request()->ip()
]);
}
}

View File

@ -16,7 +16,7 @@ class User extends Authenticatable
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
'name', 'email', 'password', 'originalIP', 'username', 'uuid', 'dob'
];
/**

View File

@ -19,8 +19,8 @@ class CreateUsersTable extends Migration
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('username'); // Mojang Username
$table->date('dob');
$table->string('username')->nullable(); // Mojang Username
$table->date('dob')->nullable();
$table->ipAddress('originalIP');
$table->string('password');
$table->rememberToken();