Skip to content

Commit 38d40f4

Browse files
authored
Allow users to specify route middleware
1 parent fbe4411 commit 38d40f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Chrysanthos\LaravelOtp\Http\Controllers\OtpVerificationController;
44
use Illuminate\Support\Facades\Route;
55

6-
Route::middleware('web')
6+
Route::middleware(config('otp.middleware', 'web'))
77
->group(function () {
88
Route::get('/login/verify-otp', [OtpVerificationController::class, 'index'])->name('2fa.index');
99
Route::post('/login/verify-otp', [OtpVerificationController::class, 'send'])->name('2fa.store');

0 commit comments

Comments
 (0)