LoginController.php 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Http\Controllers\Auth;
  3. use App\Http\Controllers\Controller;
  4. use App\Providers\RouteServiceProvider;
  5. use Illuminate\Foundation\Auth\AuthenticatesUsers;
  6. class LoginController extends Controller
  7. {
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Login Controller
  11. |--------------------------------------------------------------------------
  12. |
  13. | This controller handles authenticating users for the application and
  14. | redirecting them to your home screen. The controller uses a trait
  15. | to conveniently provide its functionality to your applications.
  16. |
  17. */
  18. use AuthenticatesUsers;
  19. /**
  20. * Where to redirect users after login.
  21. *
  22. * @var string
  23. */
  24. protected $redirectTo = RouteServiceProvider::HOME;
  25. /**
  26. * Create a new controller instance.
  27. *
  28. * @return void
  29. */
  30. public function __construct()
  31. {
  32. $this->middleware('guest')->except('logout');
  33. }
  34. }