public function getSummaryAttribute()
    {
        if (preg_match("/with message '(.+)' in/", $this->message, $match)) {
            return $match[1];
        }

        return Str::limit($this->message, 100);
    }
public function getSummaryAttribute()
    {
        if (preg_match("/with message '(.+)' in/", $this->message, $match)) {
            return $match[1];
        }

        return Str::limit($this->message, 100);
    }
public function getSummaryAttribute ( ) { if ( preg_match ( "/with message '(.+)' in/" , $ this -> message , $ match ) ) { return $ match [ 1 ] ; } return Str :: limit ( $ this -> message , 100 ) ; }
Creates a shorter version of the message attribute,
extracts the exception message or limits by 100 characters.
@return string
Creates a shorter version of the message attribute extracts the exception message or limits by 100 characters .