mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-01 12:43:46 +01:00
37 lines
725 B
PHP
37 lines
725 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\SettingServiceInterface;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Collection;
|
|
|
|
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());
|
|
}
|
|
}
|