VerificationController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Http\Controllers\Auth;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Routing\Controller;
  5. use Illuminate\Foundation\Auth\VerifiesEmails;
  6. class VerificationController extends Controller
  7. {
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Email Verification Controller
  11. |--------------------------------------------------------------------------
  12. |
  13. | This controller is responsible for handling email verification for any
  14. | user that recently registered with the application. Emails may also
  15. | be resent if the user did not receive the original email message.
  16. |
  17. */
  18. use VerifiesEmails;
  19. /**
  20. * Where to redirect users after verification.
  21. *
  22. * @var string
  23. */
  24. protected $redirectTo = '/home';
  25. /**
  26. * Create a new controller instance.
  27. *
  28. * @return void
  29. */
  30. public function __construct()
  31. {
  32. $this->middleware('auth');
  33. $this->middleware('signed')->only('verify');
  34. $this->middleware('throttle:6,1')->only('verify', 'resend');
  35. }
  36. }