Giter Club home page Giter Club logo

Comments (12)

TomLingham avatar TomLingham commented on August 11, 2024

Thanks, @danieliancu.

Any chance you could post a bit of your code as well?

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

I will contribute to the package when I have some time, I think it has great potential.

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024
Searchy::table('key')->query('global')->get()

from laravel-searchy.

TomLingham avatar TomLingham commented on August 11, 2024

It's possibly to do with key being a reserved word in MySQL and how the query is being built. I'll take a closer look at this one soon 😄

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

@TomLingham have you thought of adding multiple tables support? I saw a closed issue.

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

@TomLingham thank you very much!

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

@TomLingham it's because of the reserved keyword
This works:

Searchy::table('`key`')->query('global')->get()

and gives appropriate results.

from laravel-searchy.

TomLingham avatar TomLingham commented on August 11, 2024

@danieliancu I have considered it but don't think I will be implementing it. If there are more advanced requirements for searching, then realistically Searchy isn't the right tool for the job. It's only really meant to be a drop in searching tool for smaller projects.

from laravel-searchy.

TomLingham avatar TomLingham commented on August 11, 2024

Great! Thanks @danieliancu I thought that would be the case. I will fix this up in the code soon. Just have to wrap the table names and probably wouldn't hurt to have some tests to run.

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

@TomLingham you mean the column names, right?

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

@TomLingham what I like the most about this package, is that it's built the laravel way - easy to use and gets the job done

from laravel-searchy.

dciancu avatar dciancu commented on August 11, 2024

@TomLingham Thank you!

from laravel-searchy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.