Support the ongoing development of Laravel.io →
Authentication Requests

i had an a problem in login page he never attempt my data i make a hash in my db password but a problem is not solved could any one help me ?

this is my controller

....function postlogin() { ....

	                      $input=Input::all();
	                     $rules=array(		
				'email'=>'required|email',
				'password'=>'required|min:6'

				);
	$val= Validator::make($input,$rules);
	if($val->fails())
	{
		return Redirect::to('login')->withInput()->withErrors($val);
	}else{


		$method= array('email'=>$input['email'],'password'=>$input['password']);
    
		if(Auth::attempt($method))
		{
			return 'gooooooooood';
		}else{
			return  'bad connsection'; 
		}	   
		       
	} 

....}

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.