VerificationController.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Http\Controllers\Auth;
  3. use App\Http\Controllers\Controller;
  4. use Illuminate\Foundation\Auth\VerifiesEmails;
  5. class VerificationController extends Controller
  6. {
  7. /*
  8. |--------------------------------------------------------------------------
  9. | Email Verification Controller
  10. |--------------------------------------------------------------------------
  11. |
  12. | This controller is responsible for handling email verification for any
  13. | user that recently registered with the application. Emails may also
  14. | be re-sent if the user didn't receive the original email message.
  15. |
  16. */
  17. use VerifiesEmails;
  18. /**
  19. * Where to redirect users after verification.
  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('auth');
  32. $this->middleware('signed')->only('verify');
  33. $this->middleware('throttle:6,1')->only('verify', 'resend');
  34. }
  35. }