Giter Club home page Giter Club logo

Comments (6)

joedixon avatar joedixon commented on August 26, 2024

This is something I would like to add, but I'm a little strapped for time at the moment. Would you be interested in submitting a PR?

from laravel-translation.

brogier avatar brogier commented on August 26, 2024

I've got the same problem, logged my queries and my nova pages has 17.000 requests to my database. Got timeout on production.

from laravel-translation.

virgixas avatar virgixas commented on August 26, 2024

Possibility to override default Language and Translation Models or configure to use own ones would solve cache stuff, if i was able to add to model : use Cacheable; (genealabs/laravel-model-caching), just tried that localy and it works nice.

from laravel-translation.

vortechron avatar vortechron commented on August 26, 2024

just having this problem, your suggestion might work @virgixas . need the ability to configure our own custom model hm

from laravel-translation.

vortechron avatar vortechron commented on August 26, 2024

for now i just override JoeDixon\Translation\Drivers\Translation binding and replace and inject a custom database driver with my own translation model.

        $this->app->singleton(Translation::class, function ($app) {
            return (new TranslationManager($app, $app['config']['translation'], $app->make(Scanner::class)))->resolve();
        });

from laravel-translation.

m7vm7v avatar m7vm7v commented on August 26, 2024

Hey, I know it's been some time but has there been an easier solution than overriding the model?
Hopefully, there might be a fork or it has been already built in.
If not then can we get an example of the new model file?

Thanks

from laravel-translation.

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.