菜谱项目

HomeController.php 452B

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