File "EmailVerificationNotificationController.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/laravel/fortify/src/Http/Controllers/EmailVerificationNotificationController.php
File size: 923 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Laravel\Fortify\Http\Controllers;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Laravel\Fortify\Contracts\EmailVerificationNotificationSentResponse;
use Laravel\Fortify\Fortify;
class EmailVerificationNotificationController extends Controller
{
/**
* Send a new email verification notification.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
if ($request->user()->hasVerifiedEmail()) {
return $request->wantsJson()
? new JsonResponse('', 204)
: redirect()->intended(Fortify::redirects('email-verification'));
}
$request->user()->sendEmailVerificationNotification();
return app(EmailVerificationNotificationSentResponse::class);
}
}