adrema/app/Http/Controllers/HomeController.php

18 lines
380 B
PHP
Raw Normal View History

2020-04-10 20:32:12 +02:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
2021-07-04 23:27:00 +02:00
use App\Http\Views\HomeView;
2020-04-10 20:32:12 +02:00
class HomeController extends Controller
{
2021-07-04 23:27:00 +02:00
public function __invoke(Request $request)
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
return \Inertia::render('home/Index', app(HomeView::class)->index($request));
2020-04-10 20:32:12 +02:00
}
}