Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

try catch in laravel

use Exception;
use IlluminateDatabaseQueryException;

try {
            
} catch (Exception $e) {
  return $e->getMessage();
} catch (QueryException $e) {
  return $e->getMessage();
}
 
PREVIOUS NEXT
Tagged: #catch #laravel
ADD COMMENT
Topic
Name
8+8 =