a9f86b2551
- Authentifizierung via Laravel Breeze (Blade) - RBAC via Spatie Permission v8 (admin/manager/user) - MariaDB-Anbindung konfiguriert - Rollen & Permissions via Seeder angelegt - Admin-Account: admin@mms-systemservice.de Version: 0.2.0
25 lines
630 B
PHP
25 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');
|
|
}
|
|
}
|