src/Handlers/ExceptionHandler.php
private function filterTrace($trace)
    {
        $ignore = 'app/Services/Database.php';
        $j = strlen($ignore);
        foreach ($trace as $i => $entry) {
            if (isset($entry['file'])) {
                $s = $this->stripFile($entry['file']);
                if (substr($s, 0, $j) == $ignore) {
                    unset($trace[$i]);
                }
            }
        }

        return $trace;
    }
private function filterTrace($trace)
    {
        $ignore = 'app/Services/Database.php';
        $j = strlen($ignore);
        foreach ($trace as $i => $entry) {
            if (isset($entry['file'])) {
                $s = $this->stripFile($entry['file']);
                if (substr($s, 0, $j) == $ignore) {
                    unset($trace[$i]);
                }
            }
        }

        return $trace;
    }
private function filterTrace ( $ trace ) { $ ignore = 'app/Services/Database.php' ; $ j = strlen ( $ ignore ) ; foreach ( $ trace as $ i => $ entry ) { if ( isset ( $ entry [ 'file' ] ) ) { $ s = $ this -> stripFile ( $ entry [ 'file' ] ) ; if ( substr ( $ s , 0 , $ j ) == $ ignore ) { unset ( $ trace [ $ i ] ) ; } } } return $ trace ; }
Filter Trace to relevant entries

@param array $trace
@return array
Filter Trace to relevant entries