HomeController.php 757 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php namespace App\Http\Controllers;
  2. class HomeController extends Controller {
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Home Controller
  6. |--------------------------------------------------------------------------
  7. |
  8. | This controller renders your application's "dashboard" for users that
  9. | are authenticated. Of course, you are free to change or remove the
  10. | controller as you wish. It is just here to get your app started!
  11. |
  12. */
  13. /**
  14. * Create a new controller instance.
  15. *
  16. * @return void
  17. */
  18. public function __construct()
  19. {
  20. $this->middleware('auth');
  21. }
  22. /**
  23. * Show the application dashboard to the user.
  24. *
  25. * @return Response
  26. */
  27. public function index()
  28. {
  29. return view('home');
  30. }
  31. }