Fixed a few field entries (#116)

* Stopped inheritance errors popping up

* Added fillable fields

These would not save otherwise.

* Added country fillable field

Wouldn’t save when importing from phpvms classic.

* Added more to classic importer

Change arguments to ask in terminal
Fixed table_prefix names in Importer.php

Added the ability to import users from phpvms classic (tested on
simpilot’s 5.5.x) and when importing, it will then reset the user’s
password to a temporary hash and then email it to the user to then
change when they first log in.

* Changes to ImporterService
This commit is contained in:
web541
2018-01-04 08:41:21 +11:00
committed by Nabeel Shahzad
parent be6e5e8dec
commit 08df20de19
7 changed files with 157 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Services;
use Log;
use App\Facades\Utils;
use App\Models\User;
use App\Models\Rank;
@@ -70,6 +71,8 @@ class UserService extends BaseService
. UserState::label($user->state));
event(new UserStateChanged($user, $old_state));
return $user;
}
/**