2014-11-24 13:59:40 -06:00
|
|
|
<?php namespace App\Http\Controllers\Auth;
|
2014-10-11 22:46:51 -05:00
|
|
|
|
2014-11-24 13:59:40 -06:00
|
|
|
use App\Http\Controllers\Controller;
|
2014-11-29 13:55:38 -06:00
|
|
|
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
|
2014-10-11 22:46:51 -05:00
|
|
|
|
2014-10-15 08:34:33 -05:00
|
|
|
class AuthController extends Controller {
|
2014-10-11 22:46:51 -05:00
|
|
|
|
2014-11-29 13:55:38 -06:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| 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?
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
use AuthenticatesAndRegistersUsers;
|
2014-10-11 22:46:51 -05:00
|
|
|
|
2015-01-20 11:06:17 -06:00
|
|
|
/**
|
|
|
|
|
* Create a new authentication controller instance.
|
|
|
|
|
*
|
|
|
|
|
* @param \Illuminate\Contracts\Auth\Guard $auth
|
|
|
|
|
* @param \Illuminate\Contracts\Auth\Registrar $registrar
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(Guard $auth, Registrar $registrar)
|
|
|
|
|
{
|
|
|
|
|
$this->auth = $auth;
|
|
|
|
|
$this->registrar = $registrar;
|
|
|
|
|
|
|
|
|
|
$this->middleware('guest', ['except' => 'getLogout']);
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-11 22:46:51 -05:00
|
|
|
}
|