update user language
This commit is contained in:
parent
9ebe2f604e
commit
4942180b5f
|
|
@ -21,6 +21,7 @@ class AdminUserRepo
|
||||||
'name' => $data['name'],
|
'name' => $data['name'],
|
||||||
'email' => $data['email'],
|
'email' => $data['email'],
|
||||||
'password' => bcrypt($data['password']),
|
'password' => bcrypt($data['password']),
|
||||||
|
'locale' => $data['locale'],
|
||||||
'active' => true,
|
'active' => true,
|
||||||
]);
|
]);
|
||||||
$adminUser->save();
|
$adminUser->save();
|
||||||
|
|
@ -38,6 +39,7 @@ class AdminUserRepo
|
||||||
$userData = [
|
$userData = [
|
||||||
'name' => $data['name'],
|
'name' => $data['name'],
|
||||||
'email' => $data['email'],
|
'email' => $data['email'],
|
||||||
|
'locale' => $data['locale'],
|
||||||
'active' => true,
|
'active' => true,
|
||||||
];
|
];
|
||||||
if ($password) {
|
if ($password) {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ use Beike\Repositories\LanguageRepo;
|
||||||
use TorMorten\Eventy\Facades\Eventy;
|
use TorMorten\Eventy\Facades\Eventy;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Illuminate\Support\Facades\Session;
|
use Illuminate\Support\Facades\Session;
|
||||||
use Illuminate\Contracts\Auth\Authenticatable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取后台设置到 settings 表的值
|
* 获取后台设置到 settings 表的值
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue