2015-03-23 05:20:33 +01:00
|
|
|
<?php namespace App\Http\Controllers\Auth;
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2015-03-23 05:20:33 +01:00
|
|
|
use App\Http\Controllers\Controller;
|
2015-03-16 22:45:25 +01:00
|
|
|
use Illuminate\Contracts\Auth\Guard;
|
|
|
|
use Illuminate\Contracts\Auth\Registrar;
|
|
|
|
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
|
|
|
|
|
|
|
|
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?
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
use AuthenticatesAndRegistersUsers;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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']);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|