fipamo/app/Http/Controllers/Front/StartController.php
ro 2f0e1fdc62
implemented install from scratch
activated the fresh install process for setting up a brand new fipamo
install
2024-04-16 15:36:57 -06:00

25 lines
532 B
PHP

<?php
namespace App\Http\Controllers\Front;
use App\Http\Controllers\Controller;
class StartController extends Controller
{
protected $settings;
public function __construct()
{
}
public function index()
{
//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"]);
}
}
}