adrema/app/Setting/Controllers/SettingController.php

27 lines
580 B
PHP
Raw Normal View History

<?php
namespace App\Setting\Controllers;
use App\Http\Controllers\Controller;
use App\Setting\GeneralSettings;
use Inertia\Inertia;
use Inertia\Response;
class SettingController extends Controller
{
/**
* @wip
*/
public function index(GeneralSettings $generalSettings): Response
{
return Inertia::render('setting/Index', [
'options' => [
2022-03-11 20:19:17 +01:00
'modules' => $generalSettings->moduleOptions(),
],
'general' => [
2022-03-11 20:19:17 +01:00
'modules' => $generalSettings->modules,
],
]);
}
}