Try catch block can not prevent run time exception in my Laravel code. I wrote following code to test the exception handling:
try{
$a=112/0;
}catch(Exception $e){
$a=99;
}
But it returns a Run time error. Please help me to solve the issue.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/37rxVZ1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire