Improve installed database detection

This commit is contained in:
Darko Gjorgjijoski
2024-02-04 19:37:09 +01:00
parent 8981066b27
commit aa68332cf6
13 changed files with 161 additions and 49 deletions

View File

@@ -5,17 +5,18 @@ namespace InvoiceShelf\Http\Controllers\V1\Installation;
use Illuminate\Http\Request;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Models\Setting;
use InvoiceShelf\Space\InstallUtils;
class OnboardingWizardController extends Controller
{
/**
* Handle the incoming request.
*
* @return \Illuminate\Http\Response
* @return \Illuminate\Http\JsonResponse
*/
public function getStep(Request $request)
{
if (! \Storage::disk('local')->has('database_created')) {
if (! InstallUtils::dbMarkerExists()) {
return response()->json([
'profile_complete' => 0,
]);