krgm.so-manager-dev.com/app/Http/Controllers/HomeController.php

31 lines
733 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* コントローラーのインスタンス作成
* Laravel 12変更点ミドルウェアは routes/web.php で処理するように変更
*
* @return void
*/
public function __construct()
{
// Laravel 12: ミドルウェアは routes/web.php で処理
// Laravel 5.7: $this->middleware('auth'); を使用していた
}
/**
* アプリケーションのダッシュボードを表示
* 認証後のホーム画面
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('home');
}
}