private function returnDatabaseErrorResponse($e)
    {
        $info = $this->config('debug.queries')? ['error' => ['errors' => $this->db->statement->errorInfo(), 'last_query' => $this->db->lastQuery()]] : [];
        return $this->response->error(500, 'Database error', $info);
    }
private function returnDatabaseErrorResponse($e)
    {
        $info = $this->config('debug.queries')? ['error' => ['errors' => $this->db->statement->errorInfo(), 'last_query' => $this->db->lastQuery()]] : [];
        return $this->response->error(500, 'Database error', $info);
    }
private function returnDatabaseErrorResponse ( $ e ) { $ info = $ this -> config ( 'debug.queries' ) ? [ 'error' => [ 'errors' => $ this -> db -> statement -> errorInfo ( ) , 'last_query' => $ this -> db -> lastQuery ( ) ] ] : [ ] ; return $ this -> response -> error ( 500 , 'Database error' , $ info ) ; }
Returns a database error response

@return array Response
Returns a database error response