Test Setup Failed
Push — master ( 6863da...811519 )
by guillaume
27:05 queued 21:33
created

ConfirmPasswordController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers\Auth;
4
5
use App\Http\Controllers\Controller;
6
use App\Providers\RouteServiceProvider;
7
use Illuminate\Foundation\Auth\ConfirmsPasswords;
8
9
class ConfirmPasswordController extends Controller
10
{
11
    /*
12
    |--------------------------------------------------------------------------
13
    | Confirm Password Controller
14
    |--------------------------------------------------------------------------
15
    |
16
    | This controller is responsible for handling password confirmations and
17
    | uses a simple trait to include the behavior. You're free to explore
18
    | this trait and override any functions that require customization.
19
    |
20
    */
21
22
    use ConfirmsPasswords;
23
24
    /**
25
     * Where to redirect users when the intended url fails.
26
     *
27
     * @var string
28
     */
29
    protected $redirectTo = RouteServiceProvider::HOME;
30
31
    /**
32
     * Create a new controller instance.
33
     *
34
     * @return void
35
     */
36
    public function __construct()
37
    {
38
        $this->middleware('auth');
39
    }
40
}
41