WelcomeController.php 832 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php namespace App\Http\Controllers;
  2. class WelcomeController extends Controller {
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Home Controller
  6. |--------------------------------------------------------------------------
  7. |
  8. | You may wish to use controllers instead of, or in addition to, Closure
  9. | based routes. That's great! Here is an example controller method to
  10. | get you started. To route to this controller, just add the route:
  11. |
  12. | $router->get('/', 'WelcomeController@index');
  13. |
  14. */
  15. /**
  16. * Create a new controller instance.
  17. *
  18. * @return void
  19. */
  20. public function __construct()
  21. {
  22. $this->middleware('guest');
  23. }
  24. /**
  25. * Show the application welcome screen to the user.
  26. *
  27. * @return Response
  28. */
  29. public function index()
  30. {
  31. return view('welcome');
  32. }
  33. }