]> BookStack Code Mirror - bookstack/blobdiff - app/Providers/AuthServiceProvider.php
Guest create page: name field autofocus
[bookstack] / app / Providers / AuthServiceProvider.php
index a4022cc500968da5fcc4aa5973517a9375749082..5e16179ab27c60ff878451f35868a75d9013c662 100644 (file)
@@ -24,9 +24,7 @@ class AuthServiceProvider extends ServiceProvider
     {
         // Password Configuration
         // Changes here must be reflected in ApiDocsGenerate@getValidationAsString.
-        Password::defaults(function () {
-            return Password::min(8);
-        });
+        Password::defaults(fn () => Password::min(8));
 
         // Custom guards
         Auth::extend('api-token', function ($app, $name, array $config) {