您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

39 行
943 B

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