diff --git a/app/Http/Controllers/UserEmailResetNotification.php b/app/Http/Controllers/UserEmailResetNotificationController.php similarity index 93% rename from app/Http/Controllers/UserEmailResetNotification.php rename to app/Http/Controllers/UserEmailResetNotificationController.php index ec20140..1e91d16 100644 --- a/app/Http/Controllers/UserEmailResetNotification.php +++ b/app/Http/Controllers/UserEmailResetNotificationController.php @@ -11,7 +11,7 @@ use Inertia\Inertia; use Inertia\Response; -final readonly class UserEmailResetNotification +final readonly class UserEmailResetNotificationController { public function create(Request $request): Response { diff --git a/app/Http/Controllers/UserEmailVerification.php b/app/Http/Controllers/UserEmailVerificationController.php similarity index 92% rename from app/Http/Controllers/UserEmailVerification.php rename to app/Http/Controllers/UserEmailVerificationController.php index 4aed94a..62c85a2 100644 --- a/app/Http/Controllers/UserEmailVerification.php +++ b/app/Http/Controllers/UserEmailVerificationController.php @@ -9,7 +9,7 @@ use Illuminate\Foundation\Auth\EmailVerificationRequest; use Illuminate\Http\RedirectResponse; -final readonly class UserEmailVerification +final readonly class UserEmailVerificationController { public function update(EmailVerificationRequest $request, #[CurrentUser] User $user): RedirectResponse { diff --git a/routes/web.php b/routes/web.php index 373c480..cf8270d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,8 +4,8 @@ use App\Http\Controllers\SessionController; use App\Http\Controllers\UserController; -use App\Http\Controllers\UserEmailResetNotification; -use App\Http\Controllers\UserEmailVerification; +use App\Http\Controllers\UserEmailResetNotificationController; +use App\Http\Controllers\UserEmailVerificationController; use App\Http\Controllers\UserEmailVerificationNotificationController; use App\Http\Controllers\UserPasswordController; use App\Http\Controllers\UserProfileController; @@ -56,9 +56,9 @@ ->name('password.store'); // User Email Reset Notification... - Route::get('forgot-password', [UserEmailResetNotification::class, 'create']) + Route::get('forgot-password', [UserEmailResetNotificationController::class, 'create']) ->name('password.request'); - Route::post('forgot-password', [UserEmailResetNotification::class, 'store']) + Route::post('forgot-password', [UserEmailResetNotificationController::class, 'store']) ->name('password.email'); // Session... @@ -77,7 +77,7 @@ ->name('verification.send'); // User Email Verification... - Route::get('verify-email/{id}/{hash}', [UserEmailVerification::class, 'update']) + Route::get('verify-email/{id}/{hash}', [UserEmailVerificationController::class, 'update']) ->middleware(['signed', 'throttle:6,1']) ->name('verification.verify'); diff --git a/tests/Feature/Controllers/UserEmailResetNotificationTest.php b/tests/Feature/Controllers/UserEmailResetNotificationControllerTest.php similarity index 100% rename from tests/Feature/Controllers/UserEmailResetNotificationTest.php rename to tests/Feature/Controllers/UserEmailResetNotificationControllerTest.php diff --git a/tests/Feature/Controllers/UserEmailVerificationTest.php b/tests/Feature/Controllers/UserEmailVerificationControllerTest.php similarity index 100% rename from tests/Feature/Controllers/UserEmailVerificationTest.php rename to tests/Feature/Controllers/UserEmailVerificationControllerTest.php