mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
setup wizard database password as optional
(cherry picked from commit ba58e76d3b)
This commit is contained in:
@@ -27,7 +27,7 @@ class StoreDatabaseCredentialsController extends Controller
|
||||
'port' => $request->input('port'),
|
||||
'database' => $request->input('name'),
|
||||
'username' => $request->input('username'),
|
||||
'password' => $request->input('password'),
|
||||
'password' => $request->input('password') ?? '',
|
||||
],
|
||||
]);
|
||||
|
||||
@@ -51,7 +51,7 @@ class StoreDatabaseCredentialsController extends Controller
|
||||
'DB_PORT' => $request->input('port'),
|
||||
'DB_DATABASE' => $request->input('name'),
|
||||
'DB_USERNAME' => $request->input('username'),
|
||||
'DB_PASSWORD' => $request->input('password'),
|
||||
'DB_PASSWORD' => $request->input('password') ?? '',
|
||||
]);
|
||||
|
||||
Artisan::call('config:cache');
|
||||
|
||||
@@ -28,7 +28,7 @@ class StoreDatabaseCredentialsRequest extends FormRequest
|
||||
'port' => 'required|string',
|
||||
'name' => 'required|string',
|
||||
'username' => 'required|string',
|
||||
'password' => 'required|string',
|
||||
'password' => 'nullable|sometimes|string',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user