2022-09-08 15:06:44 -04:00

34 lines
642 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index($component = "home")
{
return view('home', compact('component'));
}
public function show($group, $component, $id = "")
{
return view('home', compact('group', 'component', "id"));
}
}