I need support login section.
public function postLogin(LoginRequest $request){
$login = array(
'username' => $request->username,
'password' => $request->password,
'level' => 1
);
echo "<pre>";
print_r($login);
echo "</pre>";
if($this->auth->attempt($login))
{
echo "OK";
}
else
{
echo "Not OK";
}
}
ps: if(Auth::attempt($login)) not working
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community