Moving auth constructor to app.
This commit is contained in:
parent
8e81489c97
commit
61ff20256b
|
@ -18,4 +18,19 @@ class AuthController extends Controller {
|
||||||
|
|
||||||
use AuthenticatesAndRegistersUsers;
|
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']);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue