调整管理员删除

dev
vine_liutk 2022-11-02 14:53:53 +08:00
parent bb81546b35
commit 87e45da1d1
2 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ class AdminUserController extends Controller
} }
try { try {
DB::beginTransaction(); DB::beginTransaction();
$adminUser->crops()->sync([]); $adminUser->bases()->sync([]);
$adminUser->roles()->sync([]); $adminUser->roles()->sync([]);
$adminUser->delete(); $adminUser->delete();
DB::commit(); DB::commit();

View File

@ -1,8 +1,8 @@
<?php <?php
return [ return [
'labels' => [ 'labels' => [
'FriendLink' => 'FriendLink', 'FriendLink' => '友情链接',
'friend-link' => 'FriendLink', 'friend-links' => '友情链接',
], ],
'fields' => [ 'fields' => [
'name' => '名称', 'name' => '名称',