HomeController.php 582 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Routing\ControllerMiddlewareOptions;
  5. class HomeController extends Controller
  6. {
  7. /**
  8. * Create a new controller instance.
  9. *
  10. * @see ControllerMiddlewareOptions::except()
  11. * @see ControllerMiddlewareOptions::only()
  12. */
  13. public function __construct()
  14. {
  15. $this->middleware('auth');
  16. }
  17. /**
  18. * Show the application dashboard.
  19. *
  20. * @return \Illuminate\Http\Response
  21. */
  22. public function index()
  23. {
  24. return view('home');
  25. }
  26. }