I am getting below output from laravel 

I need to get only message from her but unable to get

I am getting this object in `$bar` variable

```
FatalThrowableError {#20 ▼
  #message: "Parse error: syntax error, unexpected 'Route' (T_STRING), expecting '{'"
  #code: 0
  #line: 36
  #severity: E_PARSE
  -trace: {▶}
}

```

I tried `$bar->message`

Actually I made this error intentionally, I am storing error in table. so I just want to get `message` part only.

***Update***

I asked this question because I wanted to to store error in mysql and it is possible through laravel events named `illuminate.log` it gives two param one for type and another is for message collection with file-name, line number and all, so I asked how to get only message.