LoginController::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Microboard\Http\Controllers\Auth;
4
5
use Microboard\Http\Controllers\Controller;
6
use Illuminate\Foundation\Auth\AuthenticatesUsers;
7
8
class LoginController extends Controller
9
{
10
    /*
11
    |--------------------------------------------------------------------------
12
    | Login Controller
13
    |--------------------------------------------------------------------------
14
    |
15
    | This controller handles authenticating users for the application and
16
    | redirecting them to your home screen. The controller uses a trait
17
    | to conveniently provide its functionality to your applications.
18
    |
19
    */
20
21
    use AuthenticatesUsers;
22
23
    /**
24
     * Where to redirect users when the intended url fails.
25
     */
26
    protected function redirectTo()
27
    {
28
        return url(config('microboard.routes.prefix'));
29
    }
30
31
    /**
32
     * Create a new controller instance.
33
     */
34
    public function __construct()
35
    {
36
        $this->middleware('guest')->except('logout');
37
    }
38
39
    /**
40
     * Show the application's login form.
41
     *
42
     * @return \Illuminate\View\View
43
     */
44
    public function showLoginForm()
45
    {
46
        return view('microboard::auth.login');
47
    }
48
}
49