i'm using laravel with oracle database. Now, i'm making login sections. When i was input correct username and password, result is okay. But i was input incorrect username or password, following exception occured:
Illuminate \ Database \ QueryException
oci_error() expects parameter 1 to be resource, object given (SQL: select * from test_laravel_auth where username = tugsuu and password = testsss)
My controller code:
$user = DB::table('test_laravel_auth')->where('username', '=', $input['login_username'])
->where('password', '=', $input['login_password'])
->get();
return count($user);
if($user != null){
return "SUCCESS :D";
}
return "failed";