Completed
Push — v3.0.0-dev ( c7f980...54069c )
by Hilmi Erdem
28:15
created

OtpRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 0
b 0
f 0
ccs 0
cts 7
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
1
<?php
2
3
/*
4
 * @copyright 2018 Hilmi Erdem KEREN
5
 * @license MIT
6
 */
7
8
namespace Erdemkeren\TemporaryAccess;
9
10
use Illuminate\Support\Facades\Route;
11
use Erdemkeren\TemporaryAccess\Http\Controllers\OtpController;
12
13
class OtpRoutes
14
{
15
    /**
16
     * Binds the Passport routes into the controller.
17
     */
18
    public static function register(): void
19
    {
20
        Route::resource('otp', OtpController::class, [
21
            'only'       => ['create', 'store'],
22
            'prefix'     => 'otp',
23
        ])->middleware(['web', 'auth']);
24
    }
25
}
26