mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-05 06:40:53 +01:00
40 lines
793 B
PHP
40 lines
793 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\SettingService;
|
|
use Illuminate\Support\Facades\App;
|
|
|
|
class SinglePageController extends Controller
|
|
{
|
|
|
|
/**
|
|
* The Settings Service instance.
|
|
*/
|
|
protected SettingService $settingService;
|
|
|
|
|
|
/**
|
|
* Create a new controller instance.
|
|
*
|
|
*/
|
|
public function __construct(SettingService $settingService)
|
|
{
|
|
$this->settingService = $settingService;
|
|
}
|
|
|
|
|
|
/**
|
|
* return the main view
|
|
* @return view
|
|
*/
|
|
public function index()
|
|
{
|
|
return view('landing')->with([
|
|
'appSettings' => $this->settingService->all()->toJson(),
|
|
'lang' => App::currentLocale(),
|
|
'locales' => collect(config("2fauth.locales"))->toJson(),
|
|
]);
|
|
}
|
|
}
|