adrema/app/Http/Controllers/HomeController.php

18 lines
381 B
PHP

<?php
namespace App\Http\Controllers;
use App\Http\Views\HomeView;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function __invoke(Request $request)
{
session()->put('menu', 'dashboard');
session()->put('title', 'Dashboard');
return \Inertia::render('home/VIndex', app(HomeView::class)->index($request));
}
}