Giter Site home page Giter Site logo

Comments (4)

spiritix avatar spiritix commented on June 7, 2024 1

Are you sure that all your models include the LadaCacheTrait?

use \Spiritix\LadaCache\Database\LadaCacheTrait;

from lada-cache.

hen3b182 avatar hen3b182 commented on June 7, 2024

When i switch to:

$users = User::whereHas("user_documents", function($q) use($request) {
            $q->where("name", $request->names);
        });

it gives a different error:
Argument 1 passed to Spiritix\LadaCache\Reflector::getTablesFromWhere() must be an instance of Spiritix\LadaCache\Database\QueryBuilder, instance of Illuminate\Database\Query\Builder given, called in ...\vendor\spiritix\lada-cache\src\Spiritix\LadaCache\Reflector.php on line 145

from lada-cache.

hen3b182 avatar hen3b182 commented on June 7, 2024

@spiritix Thank you for your comment, i double checked everything, and just one more error like the above came back caused by Role model https://github.com/spatie/laravel-permission

from lada-cache.

spiritix avatar spiritix commented on June 7, 2024

Create a custom "Role" model which extends the one from the third-party package and include the trait there. Or if that doesn't work, you will have to fork the package.

from lada-cache.

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.