mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 19:57:44 +02:00
Refresh twofaccounts count after group assignment
This commit is contained in:
parent
ca4b16a7cc
commit
6bc3f74459
@ -151,6 +151,7 @@ class GroupService
|
|||||||
$twofaccounts = TwoFAccount::find($ids);
|
$twofaccounts = TwoFAccount::find($ids);
|
||||||
|
|
||||||
$group->twofaccounts()->saveMany($twofaccounts);
|
$group->twofaccounts()->saveMany($twofaccounts);
|
||||||
|
$group->loadCount('twofaccounts');
|
||||||
|
|
||||||
Log::info(sprintf('Twofaccounts #%s assigned to groups %s', implode(',#', $ids), var_export($group->name, true)));
|
Log::info(sprintf('Twofaccounts #%s assigned to groups %s', implode(',#', $ids), var_export($group->name, true)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user