Teren-app/app/Http/Controllers/SettingController.php
Simon Pocrnjič 0f8cfd3f16 changes
2025-01-02 18:38:47 +01:00

25 lines
527 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Inertia\Inertia;
class SettingController extends Controller
{
//
public function index(Request $request){
return Inertia::render('Settings/Index', [
'actions' => \App\Models\Action::query()
->with('decisions')
->get(),
'decisions' => \App\Models\Decision::query()
->with('actions')
->get()
]
);
}
}