refactor: closure to arrow function

This commit is contained in:
HDVinnie
2020-04-14 20:38:48 -04:00
parent 46aa876c06
commit ea2a12be15
23 changed files with 145 additions and 353 deletions
@@ -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');