You need to catch the Exception.
$ssh = new Net_SSH2($all['ip']);
try {
$ssh->login($all['user'], $all['password'])
return "Works";
} catch (Errorexception $e) {
return "Problem";
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community