How to get raw Exception Message in Laravel?

If you want to get raw exception message without HTML code in Laravel you can use the following method

$e->getMessage()

This is the sample code for it