2024-07-04 21:01:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Prevention\Actions;
|
|
|
|
|
|
|
|
use Inertia\Inertia;
|
2024-07-04 23:58:46 +02:00
|
|
|
use Inertia\Response;
|
2024-07-04 21:01:14 +02:00
|
|
|
use Lorisleiva\Actions\Concerns\AsAction;
|
|
|
|
|
|
|
|
class PreventionIndexAction
|
|
|
|
{
|
|
|
|
use AsAction;
|
|
|
|
|
2024-07-04 23:58:46 +02:00
|
|
|
public function handle(): Response
|
2024-07-04 21:01:14 +02:00
|
|
|
{
|
|
|
|
session()->put('menu', 'setting');
|
|
|
|
session()->put('title', 'Prävention');
|
|
|
|
|
|
|
|
return Inertia::render('setting/Prevention');
|
|
|
|
}
|
|
|
|
}
|