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