app/Http/Controllers/Validacion/ValidacionController.php
/**
	 * Handle a login request to the application.
	 *
	 * @param  \Illuminate\Http\Request  $request
	 * @return \Illuminate\Http\Response
	 */
Handle a login request to the application.
Handle a login request to the application .
public function postInicio(IniciarSesionRequest $request)
	{
		$credentials = $request->only('email', 'password');
		if ($this->auth->attempt($credentials, $request->has('remember')))
		{
			return redirect()->intended($this->redirectPath());
		}
		return redirect($this->loginPath())
					->withInput($request->only('email', 'remember'))
					->withErrors([
						'email' => $this->getFailedLoginMessage(),
					]);
	}
public function postInicio ( IniciarSesionRequest $ request ) { $ credentials = $ request -> only ( 'email' , 'password' ) ; if ( $ this -> auth -> attempt ( $ credentials , $ request -> has ( 'remember' ) ) ) { return redirect ( ) -> intended ( $ this -> redirectPath ( ) ) ; } return redirect ( $ this -> loginPath ( ) ) -> withInput ( $ request -> only ( 'email' , 'remember' ) ) -> withErrors ( [ 'email' => $ this -> getFailedLoginMessage ( ) , ] ) ; }
Handle a login request to the application.
Handle a login request to the application .