2024-03-19 02:48:59 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Front;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
|
|
|
class StartController extends Controller
|
|
|
|
{
|
2024-04-16 23:36:57 +02:00
|
|
|
protected $settings;
|
|
|
|
|
2024-03-19 02:48:59 +01:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function index()
|
|
|
|
{
|
2024-04-16 23:36:57 +02:00
|
|
|
//check if configs are present
|
|
|
|
if (file_exists(env('FOLKS_PATH')) && file_exists(env('SETTINGS_PATH'))) {
|
|
|
|
return response()->file('../public/index.html');
|
|
|
|
} else {
|
|
|
|
return view('back.init', ["status" => false, "title" => "Set Up"]);
|
|
|
|
}
|
2024-03-19 02:48:59 +01:00
|
|
|
}
|
|
|
|
}
|