HomeController.php 620 B

123456789101112131415161718192021222324252627282930313233343536
  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\Contracts\Support\Renderable
  19. */
  20. public function index()
  21. {
  22. return view('home');
  23. }
  24. public function needauth()
  25. {
  26. return view('needauth');
  27. }
  28. public function authneed()
  29. {
  30. return view('authneed');
  31. }
  32. }