Attendize/app/Http/Controllers/Auth/AuthController.php

41 lines
1.2 KiB
PHP
Raw Normal View History

2016-03-05 00:18:10 +00:00
<?php
namespace App\Http\Controllers\Auth;
2016-02-29 15:59:36 +00:00
use App\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\Registrar;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
2016-03-05 00:18:10 +00:00
class AuthController extends Controller
{
/*
|--------------------------------------------------------------------------
| Registration & Login Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users, as well as the
| authentication of existing users. By default, this controller uses
| a simple trait to add these behaviors. Why don't you explore it?
|
*/
2016-02-29 15:59:36 +00:00
2016-03-05 00:18:10 +00:00
use AuthenticatesAndRegistersUsers;
2016-02-29 15:59:36 +00:00
2016-03-05 00:18:10 +00:00
/**
* Create a new authentication controller instance.
*
2016-09-06 20:39:27 +00:00
* @param \Illuminate\Contracts\Auth\Guard $auth
2016-03-05 00:18:10 +00:00
* @param \Illuminate\Contracts\Auth\Registrar $registrar
*
* @return void
*/
public function __construct(Guard $auth, Registrar $registrar)
{
$this->auth = $auth;
$this->registrar = $registrar;
2016-02-29 15:59:36 +00:00
2016-03-05 00:18:10 +00:00
$this->middleware('guest', ['except' => 'getLogout']);
}
2016-02-29 15:59:36 +00:00
}