You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
711 B
27 lines
711 B
<?php |
|
|
|
namespace App\Http\Controllers\Auth; |
|
|
|
use App\Http\Controllers\Controller; |
|
use App\Providers\RouteServiceProvider; |
|
use Illuminate\Http\Request; |
|
|
|
class EmailVerificationNotificationController extends Controller |
|
{ |
|
/** |
|
* Send a new email verification notification. |
|
* |
|
* @param \Illuminate\Http\Request $request |
|
* @return \Illuminate\Http\RedirectResponse |
|
*/ |
|
public function store(Request $request) |
|
{ |
|
if ($request->user()->hasVerifiedEmail()) { |
|
return redirect()->intended(RouteServiceProvider::HOME); |
|
} |
|
|
|
$request->user()->sendEmailVerificationNotification(); |
|
|
|
return back()->with('status', 'verification-link-sent'); |
|
} |
|
}
|
|
|