forked from projects/fipamo
25 lines
532 B
PHP
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"]);
|
|
}
|
|
}
|
|
}
|