when you throw and exception without a try catch block laravel will catch it and handle it. you should use it inside a try catch
try{
// geocode
$result = ///
if (!$result) {
throw new MyException('failed');
}
catch(MyException $e){
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community