vendor/yajra/laravel-datatables-oracle/src/Engines/QueryBuilderEngine.php
/**
     * Patch for fix about ambiguous field.
     * Ambiguous field error will appear when query use join table and search with keyword.
     *
     * @param mixed $query
     * @param string $column
     * @return string
     */
Patch for fix about ambiguous field.
Ambiguous field error will appear when query use join table and search with keyword.

@param mixed $query
@param string $column
@return string
Patch for fix about ambiguous field . Ambiguous field error will appear when query use join table and search with keyword . @param mixed $query @param string $column @return string
protected function addTablePrefix($query, $column)
    {
        if (strpos($column, '.') === false) {
            if (method_exists($query, 'getQuery')) {
                $q = $query->getQuery();
            } else {
                $q = $query;
            }
            if (! $q->from instanceof Expression) {
                $column = $q->from . '.' . $column;
            }
        }
        return $this->wrap($column);
    }
protected function addTablePrefix ( $ query , $ column ) { if ( strpos ( $ column , '.' ) === false ) { if ( method_exists ( $ query , 'getQuery' ) ) { $ q = $ query -> getQuery ( ) ; } else { $ q = $ query ; } if ( ! $ q -> from instanceof Expression ) { $ column = $ q -> from . '.' . $ column ; } } return $ this -> wrap ( $ column ) ; }
Patch for fix about ambiguous field.
Patch for fix about ambiguous field .
// Check if field does not have a table prefix // Alternative method to check instanceof \Illuminate\Database\Eloquent\Builder // Get table from query and add it.