mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-30 23:42:49 -05:00
refactor: closure to arrow function
This commit is contained in:
@@ -75,12 +75,8 @@ class MassActionController extends Controller
|
||||
*/
|
||||
public function update()
|
||||
{
|
||||
$validating_group = cache()->rememberForever('validating_group', function () {
|
||||
return Group::where('slug', '=', 'validating')->pluck('id');
|
||||
});
|
||||
$member_group = cache()->rememberForever('member_group', function () {
|
||||
return Group::where('slug', '=', 'user')->pluck('id');
|
||||
});
|
||||
$validating_group = cache()->rememberForever('validating_group', fn() => Group::where('slug', '=', 'validating')->pluck('id'));
|
||||
$member_group = cache()->rememberForever('member_group', fn() => Group::where('slug', '=', 'user')->pluck('id'));
|
||||
$users = User::where('group_id', '=', $validating_group[0])->get();
|
||||
|
||||
foreach ($users as $user) {
|
||||
|
||||
Reference in New Issue
Block a user