GithubHelp home page GithubHelp logo

Eloquent relations about laravel-model-json-storage HOT 5 OPEN

okipa avatar okipa commented on September 5, 2024
Eloquent relations

from laravel-model-json-storage.

Comments (5)

Okipa avatar Okipa commented on September 5, 2024

Hello @nam-co, yes, I think it would be possible but it represents something quite complex to setup and to test.
It would demand time and digging into the Eloquent ORM to override the right methods.

What is your use case, needing this to be developed ?

from laravel-model-json-storage.

nam-co avatar nam-co commented on September 5, 2024

Hi @Okipa thanks for the answer, for example #user->Country->currency, when a countries json file probable doesn't change that much, it makes sense to have a json file

from laravel-model-json-storage.

Okipa avatar Okipa commented on September 5, 2024

@nam-co
I will try to implement this when i'll have some time but right now, I am working on an other repository (https://github.com/Okipa/laravel-bootstrap-components).
I would consider merge requests is someone is up to make the relationships working with this package (https://laravel.com/docs/5.6/eloquent-relationships).

from laravel-model-json-storage.

nam-co avatar nam-co commented on September 5, 2024

The B4 components look good, I once tried something similar but didn’t put much effort https://github.com/maksuco/b4c/blob/master/README.md , I like yours better, would you able to put css classes and js data- to the echo render?

from laravel-model-json-storage.

Okipa avatar Okipa commented on September 5, 2024

You can indeed set class and html attributes to each component with default values in config.
For discussion / features requests about other packages, please open issues in it to keep this issue clean and understandable for eventual contributors ;)

from laravel-model-json-storage.

Related Issues (4)

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.