- Move all application code into schneespur/ subdirectory for cleaner GitHub presentation (README, LICENSE, INSTALL guides stay in root) - Fix German Umlaut encoding in INSTALL.de.md and README.md (ae→ä, oe→ö, ue→ü throughout) - ZIP download structure remains flat (code in root) for easy deployment
24 lines
630 B
PHP
24 lines
630 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Auth;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class EmailVerificationNotificationController extends Controller
|
|
{
|
|
/**
|
|
* Send a new email verification notification.
|
|
*/
|
|
public function store(Request $request): RedirectResponse
|
|
{
|
|
if ($request->user()->hasVerifiedEmail()) {
|
|
return redirect()->intended(route('dashboard', absolute: false));
|
|
}
|
|
|
|
$request->user()->sendEmailVerificationNotification();
|
|
|
|
return back()->with('status', 'verification-link-sent');
|
|
}
|
|
}
|