adrema/app/Http/Controllers/HomeController.php

19 lines
413 B
PHP
Raw Normal View History

2020-04-10 20:32:12 +02:00
<?php
namespace App\Http\Controllers;
2021-07-04 23:27:00 +02:00
use App\Http\Views\HomeView;
2022-02-12 14:55:03 +01:00
use Illuminate\Http\Request;
2022-02-12 16:16:56 +01:00
use Inertia\Response;
2020-04-10 20:32:12 +02:00
class HomeController extends Controller
{
2022-02-12 16:16:56 +01:00
public function __invoke(Request $request): Response
2020-04-10 20:32:12 +02:00
{
2021-04-11 00:57:47 +02:00
session()->put('menu', 'dashboard');
2021-04-11 01:25:40 +02:00
session()->put('title', 'Dashboard');
2021-07-04 23:27:00 +02:00
2022-02-12 14:55:03 +01:00
return \Inertia::render('home/VIndex', app(HomeView::class)->index($request));
2020-04-10 20:32:12 +02:00
}
}