mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-27 05:50:51 -05:00
refactor: closure to arrow function
This commit is contained in:
@@ -78,9 +78,7 @@ class RegisterController extends Controller
|
||||
->withErrors(trans('auth.invalid-key'));
|
||||
}
|
||||
|
||||
$validating_group = cache()->rememberForever('validating_group', function () {
|
||||
return Group::where('slug', '=', 'validating')->pluck('id');
|
||||
});
|
||||
$validating_group = cache()->rememberForever('validating_group', fn() => Group::where('slug', '=', 'validating')->pluck('id'));
|
||||
|
||||
$user = new User();
|
||||
$user->username = $request->input('username');
|
||||
|
||||
Reference in New Issue
Block a user