laravel exception message in class code example Example: laravel print exception message echo $e->getMessage();