PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/app/Http/Controllers/Auth/LoginController.php

https://bitbucket.org/cityserv/techreportph
PHP | 39 lines | 13 code | 6 blank | 20 comment | 0 complexity | 22281afec6723b82132e7aa5a31a6399 MD5 | raw file
 1<?php
 2
 3namespace App\Http\Controllers\Auth;
 4
 5use App\Http\Controllers\Controller;
 6use Illuminate\Foundation\Auth\AuthenticatesUsers;
 7
 8class 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 after login.
25     *
26     * @var string
27     */
28    protected $redirectTo = '/home';
29
30    /**
31     * Create a new controller instance.
32     *
33     * @return void
34     */
35    public function __construct()
36    {
37        $this->middleware('guest', ['except' => 'logout']);
38    }
39}