2FAuth/app/Http/Controllers/SinglePageController.php
2022-03-31 11:24:01 +02:00

35 lines
661 B
PHP

<?php
namespace App\Http\Controllers;
use App\Services\SettingServiceInterface;
class SinglePageController extends Controller
{
/**
* The Settings Service instance.
*/
protected SettingServiceInterface $settingService;
/**
* Create a new controller instance.
*
*/
public function __construct(SettingServiceInterface $SettingServiceInterface)
{
$this->settingService = $SettingServiceInterface;
}
/**
* return the main view
* @return view
*/
public function index()
{
return view('landing')->with('appSettings', $this->settingService->all()->toJson());
}
}