AuthController return types
This commit is contained in:
parent
fece50ca09
commit
b03102e3c6
|
@ -53,7 +53,7 @@ class AuthController extends BaseController
|
||||||
/**
|
/**
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function login()
|
public function login(): Response
|
||||||
{
|
{
|
||||||
return $this->showLogin();
|
return $this->showLogin();
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class AuthController extends BaseController
|
||||||
* @param bool $showRecovery
|
* @param bool $showRecovery
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
protected function showLogin($showRecovery = false)
|
protected function showLogin($showRecovery = false): Response
|
||||||
{
|
{
|
||||||
$errors = Collection::make(Arr::flatten($this->session->get('errors', [])));
|
$errors = Collection::make(Arr::flatten($this->session->get('errors', [])));
|
||||||
$this->session->remove('errors');
|
$this->session->remove('errors');
|
||||||
|
|
Loading…
Reference in New Issue