-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify.php
34 lines (29 loc) · 949 Bytes
/
verify.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
/*
|--------------------------------------------------------------------------
| Authentication Routes: verify
|--------------------------------------------------------------------------
|
|
*/
use Illuminate\Support\Facades\Route;
Route::group([
'middleware' => config('playground-login-blade.middleware.auth'),
'namespace' => '\Playground\Login\Blade\Http\Controllers',
], function () {
Route::get('/verify-email', [
'as' => 'verification.notice',
'uses' => 'EmailVerificationController@show',
]);
Route::get('/verify-email/{id}/{hash}', [
'as' => 'verification.verify',
'uses' => 'EmailVerificationController@verify',
'middleware' => ['signed', 'throttle:6,1'],
]);
Route::post('/verify-email', [
'as' => 'verification.send',
'uses' => 'EmailVerificationController@send',
'middleware' => ['throttle:6,1'],
]);
});